📖 Scenario: You are exploring the growing field of electric vehicles (EVs) and want to understand the different career paths available in this sector.
🎯 Goal: Build a simple list of career roles in the EV sector, add a category filter, and then organize the roles by category to see the opportunities clearly.
📋 What You'll Learn
Create a list of EV career roles with exact names
Add a variable to filter roles by category
Use a loop to select roles matching the category
Organize and display the filtered roles clearly
💡 Why This Matters
🌍 Real World
Understanding career options in the EV sector helps learners explore job roles in a fast-growing industry focused on clean energy and technology.
💼 Career
Knowledge of EV career paths is useful for students, job seekers, and professionals planning to enter or switch to the electric vehicle industry.
Progress0 / 4 steps
1
Create a list of EV career roles
Create a list called ev_careers with these exact roles as strings: 'Battery Engineer', 'Charging Infrastructure Specialist', 'Electric Motor Designer', 'EV Software Developer', 'Sustainability Analyst'.
EV Technology
Hint
Use square brackets to create a list and include each role as a string inside quotes.
2
Add a category filter variable
Create a variable called category_filter and set it to the string 'Engineering'.
EV Technology
Hint
Assign the string 'Engineering' to the variable category_filter using the equals sign.
3
Select roles matching the category
Create a list called filtered_roles that includes only roles from ev_careers which contain the word 'Engineer' or 'Designer'. Use a for loop with the variable role to check each item.
EV Technology
Hint
Use a for loop to check each role. Use if to test if 'Engineer' or 'Designer' is in the role string, then add it to filtered_roles.
4
Organize and finalize the career list
Create a dictionary called career_categories with the key 'Engineering' and the value as the list filtered_roles. This groups the filtered roles under the Engineering category.
EV Technology
Hint
Use curly braces to create a dictionary and assign the list filtered_roles to the key 'Engineering'.
Practice
(1/5)
1. Which of the following is a common career opportunity in the electric vehicle (EV) sector?
easy
A. Chef
B. Fashion designer
C. Graphic novelist
D. Battery design engineer
Solution
Step 1: Understand EV sector roles
The EV sector focuses on electric vehicles, so roles related to vehicle technology are common.
Step 2: Identify relevant career
Battery design engineer works directly with EV technology, unlike unrelated jobs like chef or novelist.
Final Answer:
Battery design engineer -> Option D
Quick Check:
EV careers = Battery design engineer [OK]
Hint: Pick roles linked to vehicle tech or environment [OK]
Common Mistakes:
Choosing unrelated jobs
Confusing EV with other industries
Ignoring technology focus
2. Which skill is most important for a sales role in the EV sector?
easy
A. Customer communication
B. Graphic design
C. Mechanical engineering design
D. Programming in Python
Solution
Step 1: Identify sales role skills
Sales roles require good communication to explain products and help customers.
Step 2: Match skill to sales
Customer communication fits sales best; programming or design skills are less relevant here.
Final Answer:
Customer communication -> Option A
Quick Check:
Sales skill = Customer communication [OK]
Hint: Sales needs people skills, not technical coding [OK]
Common Mistakes:
Confusing technical skills with sales skills
Ignoring communication importance
Choosing unrelated skills
3. Consider this code snippet representing EV job roles and their required skills:
ev_jobs is a dictionary with job roles as keys and lists of skills as values. "Sales" key has ["Communication", "Customer service"].
Step 2: Access the second skill in Sales list
Index 1 in the list is "Customer service" (indexing starts at 0).
Final Answer:
Customer service -> Option B
Quick Check:
ev_jobs["Sales"][1] = Customer service [OK]
Hint: Remember list index starts at 0 [OK]
Common Mistakes:
Using index 0 instead of 1
Confusing keys and values
Misreading list contents
4. The following code is intended to print all EV career roles from a list, but it causes an error:
ev_roles = ["Engineer", "Sales", "Technician"]
for i in range(len(ev_roles)+1):
print(ev_roles[i])
What is the error and how to fix it?
medium
A. IndexError; change range to len(ev_roles)
B. SyntaxError; add colon after for loop
C. TypeError; convert list to string
D. No error; code runs fine
Solution
Step 1: Identify cause of error
range(len(ev_roles)+1) goes from 0 to 3, but ev_roles has indices 0 to 2, so index 3 is out of range causing IndexError.
Step 2: Fix the range to avoid out-of-bounds
Change range to len(ev_roles) so loop runs 0 to 2, matching list indices.
Final Answer:
IndexError; change range to len(ev_roles) -> Option A
Quick Check:
Loop index must match list length [OK]
Hint: Loop up to len(list), not len(list)+1 [OK]
Common Mistakes:
Using too large range
Ignoring zero-based indexing
Assuming no error occurs
5. A student wants to build a career in the EV sector focusing on battery technology and customer support. Which combination of education and experience is best suited?
hard
A. Study mechanical engineering only without any internships
B. Study literature and volunteer at a car repair shop
C. Study electrical engineering and intern at an EV company's customer service