Printing the types of variables
a = '''harry'''
b = 345
c = 45.32
d = True
#Printing the types of variables
print (type(a))
print (type(b))
print (type(c))
print (type(d))
<class 'str'>
<class 'int'>
<class 'float'>
<class 'bool'>
a = '''harry'''
Comments
Post a Comment