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_keywordsAdd 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