Dev4Hub
TutorialsRoadmapReviewNotesCode Editor
Sign inSign up
  • Python
  • HTML
  • CSS
  • JavaScript
  • SQL
Your progress0 / 10
search
school

Python Basics

  • 1Python Introduction
  • 2Python Syntax
  • 3Python Variables
alt_route

Python Control Flow

  • 1Python If...Else
  • 2Python While Loops
  • 3Python For Loops
  • 4Python Functions
Tutorialschevron_rightPython Tutorialchevron_rightPython Numbers

Python Numbers

format_list_numberedLesson 6 of 11schedule1 min readview_agenda1 sectionauto_awesomeAI tutor ready
01

Numeric Types

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

Example

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

Output

<class 'int'>
<class 'float'>
<class 'complex'>
Try it Yourself »
arrow_back PreviousPython StringsNext arrow_forwardPython Booleans

Dev4Hub

Learn coding with hands-on tutorials, examples and quizzes — covering Python, HTML, CSS, JavaScript, SQL and more.

Tutorials

  • Python
  • HTML
  • CSS
  • JavaScript
  • SQL

Tools

  • Code Editor
  • All Tutorials
© 2026 Dev4Hub. Inspired by the W3Schools learning model.