0
0
Drone Programmingprogramming~10 mins

Multi-drone coordination concept in Drone Programming - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start the drone's mission.

Drone Programming
drone.[1]()
Drag options to blanks, or click blank then click option'
Alaunch
Bstop
Cland
Dhover
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'land' or 'stop' instead of 'launch' will not start the mission.
2fill in blank
medium

Complete the code to make the drone move forward by 10 meters.

Drone Programming
drone.move([1], 10)
Drag options to blanks, or click blank then click option'
Aforward
Bbackward
Cup
Ddown
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'backward' or 'up' will move the drone in the wrong direction.
3fill in blank
hard

Fix the error in the code to check if the drone has reached its target.

Drone Programming
if drone.position == [1]:
    drone.stop()
Drag options to blanks, or click blank then click option'
Atarget position
BtargetPosition
Ctarget-position
Dtarget_position
Attempts:
3 left
💡 Hint
Common Mistakes
Using hyphens or spaces in variable names causes syntax errors.
4fill in blank
hard

Fill both blanks to create a dictionary of drone IDs and their battery levels for drones with battery above 20%.

Drone Programming
battery_status = {drone_id: [1] for drone_id, [2] in drones.items() if battery > 20}
Drag options to blanks, or click blank then click option'
Abattery
Bstatus
Dlevel
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong variable names or keys that don't exist in the drones dictionary.
5fill in blank
hard

Fill all three blanks to filter drones with signal strength above 75 and create a dictionary with drone names in uppercase as keys and their signal as values.

Drone Programming
strong_signals = [1]: [2] for name, [3] in drone_signals.items() if signal > 75}
Drag options to blanks, or click blank then click option'
Aname.upper()
Bsignal
Dname
Attempts:
3 left
💡 Hint
Common Mistakes
Using original names instead of uppercase or wrong variable names.