Monday, December 24, 2018

DIFFERENT TYPES OF DATATYPES IN PYTHON

Integer - Stores natural numbers ( +-1 etc )

Long - Stores large natural numbers ( +-12343545337970680238406804 etc )

Float - Stores decimal numbers ( +- 1.3443 )

String - stores character values ( 'abc' )

Dictionary - stores key value pair combination information ( {a:1,b:2} )

Complex - it stores complex numbers which are combination of numeric and string values ( 2+9j )

Set - stores unique set of values (set(1,2,3)  =[1,2,3])

Boolean - It stores True or false values

List - stores list of values ( [1,2,3,4,5,6,5,6] )

Tuple - stores list of  constant values that will never be changed ( tuple(1,2,3,4,5) =[1,2,3,4,5] )




No comments: