🚀 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

Enter Python code:
Console Output:
Console Output:
🚀 Rocket Launch Area:
Rocket
Solution
Click to Reveal Solution

Type as below:

fuel = 80