0
0
Drone Programmingprogramming~30 mins

Career opportunities in drone technology in Drone Programming - Mini Project: Build & Apply

Choose your learning style9 modes available
Career Opportunities in Drone Technology
📖 Scenario: You are working for a drone company that wants to organize information about different career roles in drone technology. Each role has a name and a brief description of what it involves.
🎯 Goal: You will create a dictionary to store drone career roles and their descriptions, set a filter to find roles related to a specific keyword, extract those roles using a dictionary comprehension, and finally display the filtered roles.
📋 What You'll Learn
Create a dictionary called drone_careers with exact role-description pairs
Create a variable called keyword with the exact string to filter roles
Use a dictionary comprehension to create filtered_careers with roles whose descriptions contain the keyword
Print the filtered_careers dictionary
💡 Why This Matters
🌍 Real World
Organizing and filtering career information helps companies and job seekers find relevant roles in drone technology.
💼 Career
Understanding how to manage and filter data structures is important for roles in software development and data analysis within the drone industry.
Progress0 / 4 steps
1
Create the drone careers dictionary
Create a dictionary called drone_careers with these exact entries: 'Drone Pilot': 'Operates drones for various missions', 'Drone Engineer': 'Designs and builds drone hardware', 'Data Analyst': 'Analyzes data collected by drones', 'Software Developer': 'Develops software for drone control', 'Maintenance Technician': 'Maintains and repairs drones'.
Drone Programming
Need a hint?

Use curly braces {} to create a dictionary with the exact keys and values given.

2
Set the keyword to filter careers
Create a variable called keyword and set it to the string 'drone' (all lowercase).
Drone Programming
Need a hint?

Assign the exact string 'drone' to the variable keyword.

3
Filter careers using dictionary comprehension
Use a dictionary comprehension to create a new dictionary called filtered_careers that includes only the roles and descriptions from drone_careers where the keyword appears in the description (case insensitive). Use for role, desc in drone_careers.items() and check if keyword is in desc.lower().
Drone Programming
Need a hint?

Use a dictionary comprehension with for role, desc in drone_careers.items() and check if keyword is in desc.lower().

4
Display the filtered careers
Write a print statement to display the filtered_careers dictionary.
Drone Programming
Need a hint?

Use print(filtered_careers) to show the filtered dictionary.