Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda 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.

Tarefa

Swipe to start coding

You have 2 integers, add them.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

Awesome!

Completion rate improved to 3.85

bookAddition

Deslize para mostrar o 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.

Tarefa

Swipe to start coding

You have 2 integers, add them.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

close

Awesome!

Completion rate improved to 3.85
Seção 1. Capítulo 6
single

single

some-alt