Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Some Simple Math | First Acquaintance
Introduction to Python
course content

Course Content

Introduction to Python

Introduction to Python

1. First Acquaintance
2. Variables and Types
3. Conditional Statements
4. Other Data Types
5. Loops
6. Functions

book
Some 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:

12345678
# Addition print(1039 + 948) # Subtraction print(10484 - 9274) # Division print(95873/472)
copy
Task
test

Swipe to show code editor

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 3
toggle bottom row

book
Some 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:

12345678
# Addition print(1039 + 948) # Subtraction print(10484 - 9274) # Division print(95873/472)
copy
Task
test

Swipe to show code editor

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt