Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Displaying values
4. Adding and subtracting numbers
The print function
List basics


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.


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