Python – Numbers:

In Python, Numbers can be defined in three ways.

  1. Integer
  2. Float
  3. Complex

Let us understand how to work with Integer numbers

we can identify which type of value the variable x is holding

Let us understand how to work with Float numbers

Let us identify the type of value the variable y is holding

Let us understand how to work with complex type

We can perform the various calculations with these numbers.

Let us see few examples below.