Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Addition | Numeric Types
Python Data Types

bookAddition

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.

Taak

Swipe to start coding

You have 2 integers, add them.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 6
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

Awesome!

Completion rate improved to 3.85

bookAddition

Veeg om het menu te tonen

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.

Taak

Swipe to start coding

You have 2 integers, add them.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

close

Awesome!

Completion rate improved to 3.85
Sectie 1. Hoofdstuk 6
single

single

some-alt