codeGK
Code it ALL
Python Numbers - CodeGK
♦ Python Numbers

♣ About Python Numbers

There are broadly three Numeric Data Types in Python.
Table Info
Data TypeDescription
intUsed to store Natural Numbers
floatUsed to Store real Numbers
complexUsed to Store Complex Numbers

♣ Example1: Python Int

Python Int Data Type used to store non-fractional real-numbers(Integers).
Example
Input:
Output:

♣ Example2: Python Float

Python Float Data Type used to Store real Numbers.
Example
Input:
Output:

♣ Example3: Python Complex

Python Complex Data Type used to Store Complex Numbers.
Example
Input:
Output:
Prev_LessonNext_Lesson
Python Numbers