Python Data Types

Python is a dynamically typed language; hence we do not need to define the type of the variable while declaring it. The interpreter implicitly binds the value with its type.


Name Type Description
Integers int Whole Number, Ex: 1 5 500..
Floating Point float Numbers with a decimal Point, Ex: 5.1 3.6 8.0
Strings str Ordered Sequence of Char. Ex: "Hi" "108" 'Hello'
Lists list Ordered Sequence of Objects. Ex: [4, 5.6, "Hi"]
Dictionaries dict Unordered Key: value pairs: Ex: {"key":"value","name":"Lovely"}
Tuples tup Ordered immutable sequence of objects. Ex: (10, "hello")
Sets set Unordered collection of unique objects. {"z", "b","a"}
Boolean bool Logical value indicating True or False