🚀 Rocket Launch Game: Integer Variables
Let's have some fun with rocket launching!
This time, we are going to use numbers. Numbers are very important, especially when counting things like "rockets" or "planets"!
Do you know that numbers in Python are called "integers"? Think of an integer as a whole number, just like how you can count items, such as the number of rockets you have or the number of planets you want to visit!
Example: If you have 5 rockets, you can tell Python: rockets = 5
and Python will remember it as a number!
In this lesson, we will set the fuel count for the rocket. Try to set the fuel to 80 in the code below.
Type a Python command to set the fuel level and launch the rocket!
Hint: Create variable name fuel. Set its value to 80
Use click to reveal the solution card or autofill for help
Console Output:
