Lesson 3.3

Random

Lesson
3.3

Random

This lesson uses:

CoDrone EDU CoDrone EDU / CoDrone EDU (JROTC edition)
Python Python

In this lesson, students will use Python programming to explore how randomness can make drone behaviors less predictable and more dynamic. They will learn how to generate random values with the randint() function and use them with variables, loops, LEDs, and buzzers to create changing colors, sounds, and flight patterns. By the end of the lesson, students will write programs that use randomization to make each flight unique, such as producing different light colors, tones, and movement sequences every time the code runs.