Python Data TypesBuilt-in data types.ExamplesGetting Data TypeUsing the type() function.x = 5 print(type(x)) Try it YourselfSetting Data TypeExamples of different types.x = "Hello World" # str x = 20 # int x = 20.5 # float x = ["apple", "banana", "cherry"] # list x = ("apple", "banana", "cherry") # tuple x = {"name" : "John", "age" : 36} # dict Try it YourselfTest Your KnowledgePython QuizNo quiz available for this topic yet.PreviousNext