x = 5
print (type (x)) # x is of type int
x = "Hello World"
print (type (x)) # x is now of type string
Younes Derfoufi
my-courses.net
my-courses.net
Python Courses & Exercises with solutions !
x = 5
print (type (x)) # x is of type int
x = "Hello World"
print (type (x)) # x is now of type string