Skip to lesson content
Dev4Hub

Lesson 6 of 11

Python Numbers

1 min read1 sectionAI tutor ready

Numeric Types

There are three numeric types in Python: int, float, complex.

Number Types

Python
x = 1
y = 2.8
z = 1j
print(type(x))
print(type(y))
print(type(z))

Output

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

You've reached the end of this lesson.

Mark it complete to keep your place in the course — it counts toward your progress and your streak.