📖 Scenario: You are helping a city plan its electric vehicle (EV) public charging network. You will create a simple data structure to represent charging stations, add configuration for charging types, organize the data, and finalize the overview for easy reference.
🎯 Goal: Build a clear and organized overview of public EV charging stations including their locations and charging types.
📋 What You'll Learn
Create a dictionary with exact charging station names and their locations
Add a list of supported charging types as a configuration variable
Use a loop to create a summary dictionary mapping station names to their charging types
Add a final key to the summary dictionary indicating the total number of stations
💡 Why This Matters
🌍 Real World
City planners and EV network managers use such data structures to keep track of charging station locations and capabilities for public use.
💼 Career
Understanding how to organize and summarize EV charging network data is useful for roles in urban planning, sustainable transportation, and EV infrastructure management.
Progress0 / 4 steps
1
Create the charging stations dictionary
Create a dictionary called charging_stations with these exact entries: 'Station A': 'Downtown', 'Station B': 'Uptown', 'Station C': 'Suburb'.
EV Technology
Hint
Use curly braces {} to create a dictionary with keys as station names and values as locations.
2
Add supported charging types list
Create a list called charging_types containing these exact strings: 'Level 1', 'Level 2', 'DC Fast'.
EV Technology
Hint
Use square brackets [] to create a list of charging types.
3
Create summary dictionary with charging types
Create an empty dictionary called station_summary. Then use a for loop with variables station and location to iterate over charging_stations.items(). Inside the loop, assign the full charging_types list to each station key in station_summary.
EV Technology
Hint
Use station_summary = {} to create an empty dictionary. Then use a for loop to assign the list to each station key.
4
Add total stations count to summary
Add a new key 'total_stations' to station_summary and set its value to the length of charging_stations using len(charging_stations).
EV Technology
Hint
Use len() to get the number of stations and assign it to the new key.
Practice
(1/5)
1. What is the main purpose of a public charging network for electric vehicles (EVs)?
easy
A. To offer free electricity to all vehicles
B. To sell electric vehicles to customers
C. To manufacture EV batteries
D. To provide accessible EV charging outside the home
Solution
Step 1: Understand the role of public charging networks
Public charging networks are designed to let EV owners charge their vehicles when they are away from home.
Step 2: Differentiate from other EV-related services
They do not sell vehicles, manufacture batteries, or provide free electricity universally.
Final Answer:
To provide accessible EV charging outside the home -> Option D
Quick Check:
Main purpose = accessible charging outside home [OK]
Hint: Public chargers = charging EVs away from home [OK]
Common Mistakes:
Confusing charging networks with EV sales
Thinking charging is always free
Mixing manufacturing with charging services
2. Which of the following is a common type of charger found in public charging networks?
easy
A. Level 2 charger
B. Solar panel charger
C. Level 1 charger
D. Wireless phone charger
Solution
Step 1: Identify common public EV charger types
Level 2 chargers are widely used in public charging networks for faster charging than Level 1.
Step 2: Exclude unrelated options
Level 1 chargers are mostly home-based, solar panel chargers are not standard public chargers, and wireless phone chargers are unrelated.
Final Answer:
Level 2 charger -> Option A
Quick Check:
Common public charger = Level 2 [OK]
Hint: Public chargers mostly use Level 2 for faster charging [OK]
Common Mistakes:
Choosing Level 1 which is slow and home-based
Confusing solar panels with chargers
Selecting unrelated wireless chargers
3. Consider this scenario: An EV driver uses a public charging app to find a charger. The app shows a fast charger available 5 miles away and a slower charger 1 mile away. What is the likely benefit of choosing the fast charger despite the longer distance?
medium
A. The slower charger will save more battery during charging
B. The fast charger costs less to use
C. The fast charger will fully charge the EV quicker, saving overall time
D. The slower charger is always more reliable
Solution
Step 1: Understand charger speed impact
Fast chargers deliver more power, reducing charging time significantly compared to slower chargers.
Step 2: Compare travel distance vs charging time
Even with extra travel, the faster charging saves total trip time, outweighing the longer drive.
Final Answer:
The fast charger will fully charge the EV quicker, saving overall time -> Option C
Quick Check:
Fast charger = quicker charge, saves time [OK]
Hint: Fast charger = less wait, even if farther [OK]
Common Mistakes:
Assuming slower charger saves battery
Thinking fast chargers cost less
Believing slower chargers are always more reliable
4. A user reports that their public charging app shows a charger as available, but when they arrive, it is occupied. What is the most likely cause of this issue?
medium
A. The charger is broken and cannot be used
B. The app's charger status was not updated in real-time
C. The user's EV is incompatible with the charger
D. The charger only works during certain hours
Solution
Step 1: Analyze app status update delays
Public charging apps rely on data updates; sometimes status is delayed, showing chargers as free when occupied.
Step 2: Exclude other causes
Broken chargers or incompatibility usually prevent charging, but do not cause false availability. Time restrictions are usually clear in app.
Final Answer:
The app's charger status was not updated in real-time -> Option B
Quick Check:
App delay causes false availability [OK]
Hint: App data may lag, causing wrong availability info [OK]
Common Mistakes:
Assuming charger is broken without checking
Blaming EV compatibility for availability
Ignoring app update delays
5. You plan a long trip using an EV and want to avoid running out of charge. Which combination of strategies best uses public charging networks effectively?
hard
A. Use a charging app to locate fast chargers and plan stops around them
B. Only charge at home before the trip and avoid public chargers
C. Stop randomly when the battery is low without planning
D. Use only slow chargers to save money, ignoring trip time
Solution
Step 1: Identify effective trip planning methods
Using apps to find fast chargers helps plan efficient stops, ensuring the EV stays charged during long trips.
Step 2: Evaluate other options
Charging only at home limits range, random stops risk running out, and slow chargers increase trip time unnecessarily.
Final Answer:
Use a charging app to locate fast chargers and plan stops around them -> Option A
Quick Check:
Planning with fast chargers = smooth trip [OK]
Hint: Plan stops with fast chargers using apps for smooth trips [OK]
Common Mistakes:
Ignoring public chargers on long trips
Relying only on home charging
Choosing slow chargers without time consideration
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.