0
0
Digital Marketingknowledge~30 mins

Budget allocation across platforms in Digital Marketing - Mini Project: Build & Apply

Choose your learning style9 modes available
Budget allocation across platforms
📖 Scenario: You are managing a marketing campaign and need to allocate your budget across different advertising platforms.
🎯 Goal: Create a simple budget allocation plan showing how much money is assigned to each platform.
📋 What You'll Learn
Create a dictionary with platform names and their allocated budgets
Add a total budget variable
Calculate the percentage of total budget allocated to each platform
Add a final summary showing total budget and allocations
💡 Why This Matters
🌍 Real World
Marketing managers often need to allocate budgets across multiple platforms to optimize campaign performance.
💼 Career
Understanding budget allocation helps in planning, reporting, and optimizing marketing spend effectively.
Progress0 / 4 steps
1
Create the initial budget dictionary
Create a dictionary called platform_budgets with these exact entries: 'Facebook': 3000, 'Google': 5000, 'Instagram': 2000
Digital Marketing
Need a hint?

Use curly braces to create a dictionary with keys as platform names and values as budget amounts.

2
Add total budget variable
Create a variable called total_budget and set it to 10000
Digital Marketing
Need a hint?

Just assign the number 10000 to the variable total_budget.

3
Calculate percentage allocation per platform
Create a new dictionary called percentage_allocation that uses a for loop with variables platform and budget to iterate over platform_budgets.items(). Calculate the percentage of total budget for each platform as (budget / total_budget) * 100 and store it in percentage_allocation with the platform as the key.
Digital Marketing
Need a hint?

Use a for loop to go through each platform and calculate its budget percentage.

4
Add final summary dictionary
Create a dictionary called budget_summary with two keys: 'total_budget' set to the variable total_budget, and 'allocations' set to the dictionary percentage_allocation.
Digital Marketing
Need a hint?

Create a dictionary that holds the total budget and the percentage allocations.