Python Data Types for Beginners_Tutorial_2
#Numbers
a = 5
b = 5.67
##String
c = 'String1'
d = "String1"
e = '''String1'''
f = """String1"""
#Boolean Values
g = True
h = False
#Collections
i = [1,2,2,3,3,4,4,'Sathish','Sathish'] #list
j = (1,2,2,3,3,4,4,'Sathish','Sathish') #Tuple
k = {1,2,2,3,3,4,4,'Sathish','Sathish'} #Set
l = {
'F_Name':'Sathish',
'L_Name':'Ponnusamy',
'Emp_Id':10892342,
} # Dict
# print the Data type of variable and its value
print('The Data Type of a is:',type(a),'Value is:',a)
print('The Data Type of b is:',type(b),'Value is:',b)
print('The Data Type of c is:',type(c),'Value is:',c)
print('The Data Type of d is:',type(d),'Value is:',d)
print('The Data Type of e is:',type(e),'Value is:',e)
print('The Data Type of f is:',type(f),'Value is:',f)
print('The Data Type of g is:',type(g),'Value is:',g)
print('The Data Type of h is:',type(h),'Value is:',h)
print('The Data Type of i is:',type(i),'Value is:',i)
print('The Data Type of j is:',type(j),'Value is:',j)
print('The Data Type of k is:',type(k),'Value is:',k)
print('The Data Type of l is:',type(l),'Value is:',l)
Видео Python Data Types for Beginners_Tutorial_2 автора Программирование Практика
Видео Python Data Types for Beginners_Tutorial_2 автора Программирование Практика
Информация
2 декабря 2023 г. 4:12:32
00:35:35
Похожие видео