Python Data Types

Python Data Types

  • Python Data Types are used to define the type of a variable. 

Python Data Type – Numeric

Python numeric data type is used to hold numeric values like.
  1. int – holds signed integers of non-limited length.
  2. long -- holds long integers.
  3. float -- holds floating precision numbers and it’s accurate upto 15 decimal places.
  4. complex -- holds complex numbers.


 If you run the above code you will see output like the below image.


 

Comments