🚀 Rocket Launch Game: Boolean Variables
Let's talk about "True" and "False"! These are like "Yes" or "No" answers.
In Python, we can use these "True" and "False" answers to help the rocket know if something is correct or not. It's like saying, "Is the rocket ready to launch?" and answering "Yes" or "No".
Example: If you want to tell Python if the rocket is ready, you can say:
rocket_ready = True
(which means "Yes, the rocket is ready!") or
rocket_ready = False
(which means "No, the rocket is not ready yet").
Now, in this lesson, we will check if the rocket is ready to launch.
Try to set rocket_ready
to True
in the code below!
🚀 Rocket Launch Area

Console Output
Click to Reveal Solution
ready = True