📖 Scenario: You are working with a global energy research team. They want to understand how electric vehicle (EV) adoption is growing worldwide. You will create a simple data structure to hold EV adoption numbers for different countries, set a threshold to identify leading countries, filter the data, and finalize the list of top adopters.
🎯 Goal: Build a data structure with EV adoption numbers by country, set a threshold for high adoption, filter countries exceeding that threshold, and finalize the list of top EV adopters.
📋 What You'll Learn
Create a dictionary named ev_adoption with exact country names and EV adoption numbers
Create a variable named high_adoption_threshold with the value 500000
Use a dictionary comprehension named top_ev_countries to select countries with EV adoption above the threshold
Add a final step to include a summary string variable summary describing the number of top EV adopter countries
💡 Why This Matters
🌍 Real World
Understanding EV adoption trends helps governments and companies plan infrastructure and policies to support electric vehicles.
💼 Career
Data analysts and energy researchers use similar data filtering and summarizing techniques to report on technology adoption and market trends.
Progress0 / 4 steps
1
Create EV adoption data
Create a dictionary called ev_adoption with these exact entries: 'China': 3500000, 'United States': 1200000, 'Germany': 700000, 'Norway': 450000, 'France': 300000.
EV Technology
Hint
Use curly braces to create a dictionary. Each entry has a country name as a string key and an integer value for EV adoption.
2
Set high adoption threshold
Create a variable called high_adoption_threshold and set it to 500000.
EV Technology
Hint
Assign the number 500000 to the variable named high_adoption_threshold.
3
Filter top EV adopter countries
Use a dictionary comprehension named top_ev_countries to select countries from ev_adoption where the adoption number is greater than high_adoption_threshold.
EV Technology
Hint
Use a dictionary comprehension with for country, count in ev_adoption.items() and an if condition comparing count to high_adoption_threshold.
4
Add summary of top EV adopters
Create a string variable called summary that says: "Number of top EV adopter countries: X" where X is the number of countries in top_ev_countries.
EV Technology
Hint
Use an f-string to include the length of top_ev_countries inside the summary text.
Practice
(1/5)
1. Which country currently leads the world in electric vehicle (EV) adoption?
easy
A. United States
B. China
C. Germany
D. India
Solution
Step 1: Identify the country with the highest EV sales and compare
China has the largest market share and highest number of EVs sold globally. While the US, Germany, and India have growing EV markets, none surpass China in total adoption.
Final Answer:
China -> Option B
Quick Check:
China leads global EV adoption [OK]
Hint: Remember China is the biggest EV market worldwide [OK]
Common Mistakes:
Confusing US as leader
Thinking Germany leads due to car brands
Assuming India leads due to population
2. Which of the following is a common government incentive to encourage EV adoption?
easy
A. Higher fuel taxes on gasoline cars
B. Banning all public transport
C. Mandatory EV ownership for all citizens
D. Free parking for EVs
Solution
Step 1: Identify and evaluate typical EV incentives
Governments often offer perks like free parking, tax credits, or rebates to encourage EV use. Free parking is a common incentive; higher fuel taxes affect gasoline cars but are indirect; mandatory ownership and banning public transport are unrealistic.
Final Answer:
Free parking for EVs -> Option D
Quick Check:
Free parking is a known EV incentive [OK]
Hint: Look for positive perks, not extreme rules [OK]
Common Mistakes:
Choosing higher fuel taxes as direct EV incentive
Thinking mandatory ownership is common
Confusing bans on public transport as incentives
3. Consider this data: In 2023, Country X sold 500,000 EVs, Country Y sold 300,000 EVs, and Country Z sold 200,000 EVs. Which country has the highest EV adoption based on sales?
easy
A. Country Z
B. Country Y
C. Country X
D. All have equal adoption
Solution
Step 1: Compare EV sales numbers and determine highest adoption
Country X sold 500,000 EVs, which is more than Country Y's 300,000 and Country Z's 200,000. Higher sales indicate higher adoption in that year.
Final Answer:
Country X -> Option C
Quick Check:
Highest sales mean highest adoption [OK]
Hint: Highest sales = highest adoption [OK]
Common Mistakes:
Choosing Country Y or Z by mistake
Thinking all are equal
Confusing sales with population
4. A report states: "Country A's EV adoption rate is 10%, but the report mistakenly lists it as 100%." What is the likely error in the report?
medium
A. Misplaced decimal point
B. Wrong country name
C. Confusing EV sales with total vehicles
D. Incorrect currency conversion
Solution
Step 1: Analyze the percentage error and common reporting mistakes
100% means all vehicles are EVs, which is unrealistic; 10% is more plausible. A common error is a misplaced decimal point turning 10% into 100%.
Final Answer:
Misplaced decimal point -> Option A
Quick Check:
Decimal errors cause percentage misreporting [OK]
Hint: Check decimal points in percentages [OK]
Common Mistakes:
Assuming wrong country
Mixing sales with total vehicles
Thinking currency affects percentage
5. If a country wants to double its EV adoption in 5 years, which combined strategy is most effective?
hard
A. Increase government incentives and expand charging infrastructure
B. Ban all gasoline cars immediately
C. Reduce EV subsidies and increase fuel taxes
D. Limit EV imports to protect local industry
Solution
Step 1: Identify effective strategies that encourage EV adoption and evaluate alternatives
Government incentives lower costs, and charging infrastructure eases use, both encouraging EV purchases. Banning gasoline cars immediately is harsh and impractical; reducing subsidies discourages EVs; limiting imports reduces availability.
Final Answer:
Increase government incentives and expand charging infrastructure -> Option A
Quick Check:
Incentives + infrastructure boost adoption [OK]
Hint: Combine incentives with infrastructure growth [OK]
Common Mistakes:
Choosing bans as first step
Thinking reducing subsidies helps
Confusing import limits with adoption boost
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.