course content

Course Content

Introduction to Python

Some Simple MathSome Simple Math

Great job! Python excels at crunching numbers. The syntax is simple: use + for addition, - for subtraction, * for multiplication, and / for division. Remember to use the print() function if you want to display the result. Unlike strings, mathematical expressions don't require quotation marks ("..." or '...').

For instance, let's tackle some basic math:


Here's your assignment: compute the following and print the outcomes:

  1. 2580 added to 198.
  2. 23 times 42.
  3. 1512 divided by 27.

Everything was clear?

Section 1. Chapter 3
toggle bottom row