Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda How to Define a Type | Conhecendo os números em Python
Tipos de Dados em Python
course content

Conteúdo do Curso

Tipos de Dados em Python

Tipos de Dados em Python

1. Conhecendo os números em Python
2. Verdadeiro ou falso?
3. Strings
4. Reunindo todos os tópicos

book
How to Define a Type

We've previously come across float and integer types, so now we can tell whether a value is a float or an integer. Can you guess what the result of the math operation 6/1.5 might be? It's easy to calculate that it equals 4, but what type does 4 belong to? It might seem like an integer, but it's actually a float. To confirm its type, you can use the type() function.

123
variable = 6/1.5 print(variable) print(type(variable))
copy
Tarefa
test

Swipe to begin your solution

  1. Check the type of the number1 variable.
  2. Check the type of the number2 variable.

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!

Seção 1. Capítulo 7
toggle bottom row

book
How to Define a Type

We've previously come across float and integer types, so now we can tell whether a value is a float or an integer. Can you guess what the result of the math operation 6/1.5 might be? It's easy to calculate that it equals 4, but what type does 4 belong to? It might seem like an integer, but it's actually a float. To confirm its type, you can use the type() function.

123
variable = 6/1.5 print(variable) print(type(variable))
copy
Tarefa
test

Swipe to begin your solution

  1. Check the type of the number1 variable.
  2. Check the type of the number2 variable.

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!

Seção 1. Capítulo 7
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt