Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Addition | Numeric Types
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python Data Types
SectionΒ 1. ChapterΒ 6
single

single

bookAddition

Swipe to show menu

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.

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.

Task

Swipe to start coding

You have 2 integers, add them.

Solution

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Β 6
single

single

Ask AI

expand

Ask AI

ChatGPT

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

some-alt