LEVEL 3: CODING CALCULATIONS 🔢

NUMBERS IN PYTHON

In the previous levels, we learned how to store words, but computers were originally built to be massive calculators! In Level 3, we dive into Integers (whole numbers) and Floats (numbers with decimals). Whether you are calculating the damage a hero takes in a game or determining the growth rate of a plant in FLORA WORLD, understanding how Python handles math is essential for every developer.

Python uses standard symbols for math, but with a few digital twists. We use + for addition and - for subtraction. However, for multiplication, we use the asterisk *, and for division, we use the forward slash /.

MASTERY CHALLENGE

Create a variable called width and another called height. Multiply them together to find the area and print the result. Can you also try to divide your area by 2? This is the foundation of building game physics!

I'M A MATH MASTER! GO TO LEVEL 4 ➔

← BACK TO LEVEL 2 🏠 HOME