roll and yaw are accessed as drone.roll and drone.yaw, pitch is a separate variable.
Step 2: Identify undefined variable in print
yaw is used without drone prefix and not defined as variable, causing error.
Final Answer:
Variable yaw is not defined before print -> Option C
Quick Check:
Undefined variable in print = yaw [OK]
Hint: Check all variables used in print are defined [OK]
Common Mistakes:
Assuming yaw variable exists without prefix
Confusing pitch variable scope
Thinking print syntax is wrong
5.
You want to program a drone to tilt forward by 30 degrees, roll right by 15 degrees, and turn left by 90 degrees. Which code snippet correctly sets these rotations?