0
0
EV Technologyknowledge~30 mins

Telematics and fleet management in EV Technology - Mini Project: Build & Apply

Choose your learning style9 modes available
Telematics and Fleet Management Basics
📖 Scenario: You work for a company that manages a fleet of electric vehicles (EVs). Your job is to organize and track the vehicles using telematics data to improve efficiency and safety.
🎯 Goal: Build a simple data structure to hold vehicle information, set a threshold for battery level alerts, filter vehicles needing attention, and finalize the fleet status report.
📋 What You'll Learn
Create a dictionary called fleet with these exact entries: 'EV101': 85, 'EV102': 40, 'EV103': 15, 'EV104': 60
Create a variable called battery_alert_threshold and set it to 20
Use a dictionary comprehension to create vehicles_needing_charge containing only vehicles with battery level less than battery_alert_threshold
Add a final line to create a list called fleet_status with strings formatted as 'Vehicle EV101: 85% battery' for all vehicles in fleet
💡 Why This Matters
🌍 Real World
Companies managing electric vehicle fleets use telematics data to monitor battery levels and maintain efficient operations.
💼 Career
Understanding how to organize and filter telematics data is essential for fleet managers, data analysts, and EV maintenance teams.
Progress0 / 4 steps
1
Create the fleet data dictionary
Create a dictionary called fleet with these exact entries: 'EV101': 85, 'EV102': 40, 'EV103': 15, 'EV104': 60
EV Technology
Need a hint?

Use curly braces {} to create a dictionary with keys as vehicle IDs and values as battery percentages.

2
Set the battery alert threshold
Create a variable called battery_alert_threshold and set it to 20
EV Technology
Need a hint?

Just assign the number 20 to the variable battery_alert_threshold.

3
Filter vehicles needing charging
Use a dictionary comprehension to create a dictionary called vehicles_needing_charge containing only vehicles from fleet with battery level less than battery_alert_threshold
EV Technology
Need a hint?

Use {key: value for key, value in dict.items() if condition} to filter the dictionary.

4
Create the fleet status report
Add a line to create a list called fleet_status with strings formatted as 'Vehicle EV101: 85% battery' for all vehicles in fleet using a list comprehension
EV Technology
Need a hint?

Use a list comprehension with an f-string to format each vehicle's status.