Datatype in python



DataTypes is to store the different types of data and size like a "int,float and String ..etc." python datatypes are dynamic.








Datatype Example
Int x = 5
Float x = 5.6
Complex x = 5j
String x = "I am good"
List x = [ 1, 2, 3, 4]
Tuple x = ( 1, 2, 3, 4)
Dictionary x = { "key1" : "value1", " key2 : value2"}
Set x = { 1, 2, 3, 4}
Boolean x = True