Lesson 10: Math - nolenfelten/Codecademy-Python-Notes GitHub Wiki

Great! Now let's do some math. You can add, subtract, multiply, divide numbers like this

addition = 72 + 23
subtraction = 108 - 204
multiplication = 108 * 0.5
division = 108 / 9

Set the variable count_to equal to the sum of two big numbers.

# Set count_to equal to the sum of two big numbers
count_to = 5000 + 600000


print count_to