0
0
EV Technologyknowledge~15 mins

Why vehicle connectivity enhances safety in EV Technology - See It in Action

Choose your learning style9 modes available
Why Vehicle Connectivity Enhances Safety
📖 Scenario: You are learning about how modern electric vehicles use connectivity to improve safety on the road. Connected vehicles share information with each other and with traffic systems to prevent accidents and keep drivers informed.
🎯 Goal: Build a simple list of vehicle safety features enabled by connectivity and then filter those features to show only the ones that directly enhance safety.
📋 What You'll Learn
Create a list called features with these exact items: 'Automatic Emergency Braking', 'Blind Spot Detection', 'In-Car Entertainment', 'Real-Time Traffic Updates', 'Remote Vehicle Diagnostics'
Create a variable called safety_keywords that holds the list ['Emergency', 'Blind Spot', 'Traffic']
Use a list comprehension to create a new list called safety_features that includes only items from features containing any keyword from safety_keywords
Add a final comment explaining that safety_features now holds only the connectivity features that enhance vehicle safety
💡 Why This Matters
🌍 Real World
Connected vehicles use data sharing to warn drivers about dangers, improving road safety and reducing accidents.
💼 Career
Understanding vehicle connectivity and safety features is important for roles in automotive technology, software development for EVs, and traffic safety analysis.
Progress0 / 4 steps
1
Create the list of vehicle features
Create a list called features with these exact items: 'Automatic Emergency Braking', 'Blind Spot Detection', 'In-Car Entertainment', 'Real-Time Traffic Updates', 'Remote Vehicle Diagnostics'
EV Technology
Need a hint?

Use square brackets [] to create a list and include all five exact feature names as strings.

2
Create the safety keywords list
Create a variable called safety_keywords that holds the list ['Emergency', 'Blind Spot', 'Traffic']
EV Technology
Need a hint?

Use square brackets [] to create a list with the exact three keywords as strings.

3
Filter features to only safety-related ones
Use a list comprehension to create a new list called safety_features that includes only items from features containing any keyword from safety_keywords
EV Technology
Need a hint?

Use a list comprehension with any() to check if any keyword is in each feature string.

4
Add a comment explaining the safety features list
Add a final comment explaining that safety_features now holds only the connectivity features that enhance vehicle safety
EV Technology
Need a hint?

Write a clear comment starting with # describing the purpose of safety_features.