📖 Scenario: You work in a marketing team that wants to organize leads based on their interest and engagement. You will create a simple lead scoring system and then plan nurturing steps for leads with different scores.
🎯 Goal: Build a lead scoring dictionary, set a score threshold, filter leads who need nurturing, and assign nurturing actions.
📋 What You'll Learn
Create a dictionary of leads with their engagement scores
Set a score threshold to identify leads needing nurturing
Filter leads below the threshold
Assign nurturing actions to filtered leads
💡 Why This Matters
🌍 Real World
Marketing teams use lead scoring to prioritize which potential customers to focus on and nurture, improving sales efficiency.
💼 Career
Understanding lead scoring and nurturing is essential for roles in digital marketing, sales operations, and customer relationship management.
Progress0 / 4 steps
1
Create the lead scores dictionary
Create a dictionary called lead_scores with these exact entries: 'LeadA': 75, 'LeadB': 40, 'LeadC': 55, 'LeadD': 30, 'LeadE': 90.
Digital Marketing
Hint
Use curly braces to create a dictionary with keys as lead names and values as scores.
2
Set the nurturing score threshold
Create a variable called nurture_threshold and set it to 60.
Digital Marketing
Hint
Just assign the number 60 to the variable named nurture_threshold.
3
Filter leads needing nurturing
Create a dictionary called leads_to_nurture using dictionary comprehension. Include only leads from lead_scores whose score is less than nurture_threshold.
Digital Marketing
Hint
Use dictionary comprehension with for lead, score in lead_scores.items() and an if condition.
4
Assign nurturing actions
Create a dictionary called nurturing_plan using dictionary comprehension. For each lead in leads_to_nurture, assign the action 'Send follow-up email'.
Digital Marketing
Hint
Use dictionary comprehension with for lead in leads_to_nurture and assign the same string action.
Practice
(1/5)
1. What is the main purpose of lead scoring in digital marketing?
easy
A. To assign points to potential customers based on their interest level
B. To send promotional emails to all website visitors
C. To create social media posts for brand awareness
D. To design the company website layout
Solution
Step 1: Understand lead scoring concept
Lead scoring assigns points to potential customers based on their actions and interest.
Step 2: Identify the main goal
The goal is to find the most interested leads to focus sales efforts effectively.
Final Answer:
To assign points to potential customers based on their interest level -> Option A
Quick Check:
Lead scoring = assigning points [OK]
Hint: Lead scoring means giving points to interested customers [OK]
Common Mistakes:
Confusing lead scoring with general marketing tasks
Thinking lead scoring is about sending emails
Mixing lead scoring with website design
2. Which of the following is the correct description of lead nurturing?
easy
A. Sending helpful messages to keep potential customers engaged
B. Assigning scores to leads based on their website visits
C. Creating advertisements for new products
D. Designing landing pages for campaigns
Solution
Step 1: Define lead nurturing
Lead nurturing involves sending useful and timely messages to potential customers to keep their interest.
Step 2: Differentiate from other tasks
It is not about scoring leads or creating ads but about engagement through communication.
Final Answer:
Sending helpful messages to keep potential customers engaged -> Option A
Quick Check:
Lead nurturing = sending helpful messages [OK]
Hint: Lead nurturing means keeping leads interested with messages [OK]
Common Mistakes:
Confusing nurturing with scoring leads
Thinking nurturing is about ads or design
Assuming nurturing is a one-time message
3. Consider this simplified lead scoring code snippet:
lead_actions = {'visited_website': 5, 'opened_email': 3, 'downloaded_ebook': 10}
lead = {'visited_website': True, 'opened_email': False, 'downloaded_ebook': True}
score = sum(points for action, points in lead_actions.items() if lead.get(action))
print(score)
What will be the output?
medium
A. 8
B. Error
C. 15
D. 0
Solution
Step 1: Identify which actions are True for the lead
The lead has 'visited_website' = True and 'downloaded_ebook' = True, 'opened_email' = False.