Python Numbers

Python Support three types of Numbers, which is as per given –

  • Int

  • Float

  • complex


How to define python Numbers

In python, we can define numbers using variables as per given below examples

>>> a = 5               #int

>>> b = 2.5            #(float)

>>> c =  1 + 2i       #(complex)

Thanks for reading this, if you have any doubt please do the comments so we can make changes if anything is missing.

In the next tutorial, we will learn about “python strings