Introduction
Displaying values
4. Adding and subtracting numbers
Variables
The print function
List basics
Summary

Instruction

Nicely done! Python can do much more than just display a value back to you. It knows maths quite well, too. For instance, it can add (+) or subtract (-) numbers:

30 + 7

The code above will print 37, which is the sum of 30 and 7.

23 - 7

The code above will print 16, the difference between 23 and 7.

Exercise

What is the result of 1992 + 67? Display the result.