Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Addition | Numeric Types
Python Data Types

book
Addition

Python provides arithmetic operators that allow us to perform arithmetic operations. The following include arithmetic operations in Python, along with their meaning:

First, let's take a look at how the numbers are added.

python
Input:
num_1 = 5
num_2 = 34.5
sum = num_1 + num_2
print(f'The sum of {num_1} and {num_2} is {sum}')

Output:
The sum of 5 and 34.5 is 39.5

Now it's your turn to test your strength.

Завдання

Swipe to start coding

You have 2 integers, add them.

Рішення

a = 245
b = 653
sum = a + b

print(f'The sum of {a} and {b} is {sum}')

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 6
a = 245
b = 653
sum = _ _ _

print(f'The sum of {a} and {b} is {_ _ _}')

Запитати АІ

expand
ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt