Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Arithmetic Operations | Python Basics
Introduction to Python | Mobile-Friendly

bookArithmetic Operations

Python is widely used in machine learning problems, which contain advanced math. We will start with the very basic arithmetic operations. These are:

  • addition (+ operator)
  • subtraction (- operator)
  • multiplication (* operator)
  • division (/ operator)

Perform the simplest math operations:

  1. Add 203 and 34.
  2. Subtract 18 from 34.
  3. Divide 107 by 19.
question-icon

Fill in the blanks to complete the tasks.

# Addition
print(203
34)
# Subtraction
print(34
18)
# Division
print(107
19)
237
16
5.631578947368421

Click or drag`n`drop items and fill in the blanks

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Awesome!

Completion rate improved to 4

bookArithmetic Operations

Swipe to show menu

Python is widely used in machine learning problems, which contain advanced math. We will start with the very basic arithmetic operations. These are:

  • addition (+ operator)
  • subtraction (- operator)
  • multiplication (* operator)
  • division (/ operator)

Perform the simplest math operations:

  1. Add 203 and 34.
  2. Subtract 18 from 34.
  3. Divide 107 by 19.
question-icon

Fill in the blanks to complete the tasks.

# Addition
print(203
34)
# Subtraction
print(34
18)
# Division
print(107
19)
237
16
5.631578947368421

Click or drag`n`drop items and fill in the blanks

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
some-alt