Complete the code to define a waypoint with latitude.
waypoint = {'latitude': [1], 'longitude': -122.084}The latitude value must be a number, not a string or variable name.
Complete the code to add a waypoint to the mission list.
mission = []
mission.append([1])You need to append a dictionary representing the waypoint, not a variable name.
Fix the error in the code to loop through waypoints correctly.
for [1] in mission: print(f"Flying to {waypoint['latitude']}, {waypoint['longitude']}")
The loop variable should be 'waypoint' to match the print statement.
Fill both blanks to check if the drone reached the waypoint.
if current_location['latitude'] [1] waypoint['latitude'] and current_location['longitude'] [2] waypoint['longitude']: print('Waypoint reached')
We check if both latitude and longitude match exactly to confirm reaching the waypoint.
Fill both blanks to create a dictionary comprehension for waypoints above altitude 100.
high_altitude_waypoints = {wp['name']: wp['altitude'] for wp in waypoints if wp['altitude'] [1] [2]The comprehension filters waypoints with altitude greater than 100.
