# basics variables

Data Types: int and float

Every value in Python has a type. Two of the most common are:

  • int — whole numbers, like 5
  • float — decimal numbers, like 5.0

You can check any value's type with type():

print(type(5))
print(type(5.0))

This prints:

<class 'int'>
<class 'float'>

(Don't worry about the word "class" for now — just notice it tells you int or float.)

Your turn: print type(10), then print type(2.5).

💡 need a hint?

pyb-var-types-intro.py
loading...