-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataTypes.py
More file actions
43 lines (41 loc) · 869 Bytes
/
DataTypes.py
File metadata and controls
43 lines (41 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
a=8
print("The value of a is",a)
print("Datatype is ",type(a))
a=8.7
print("The value of a is",a)
print("Datatype is ",type(a))
a='DJ'
print("The value of a is",a)
print("Datatype is ",type(a))
a=[1,2,3]
print("The value of a is",a)
print("Datatype is ",type(a))
a=(1,2,3)
print("The value of a is",a)
print("Datatype is ",type(a))
a={1:'a',2:'b'}
print("The value of a is",a)
print("Datatype is ",type(a))
a=3+10j
print("The value of a is",a)
print("Datatype is ",type(a))
a={1,2,3}
print("The value of a is",a)
print("Datatype is ",type(a))
a=True
print("The value of a is",a)
print("Datatype is ",type(a))
'Rows are also known as tuples or records'
'Coloumns are also known as Fields'
a=10
b=8.7
c='DJ'
d=[1,2,3]
e=(1,2,3)
f={1:'a',2:'b'}
g={1,2,3}
h=True
print(a,b,c,d,e,f,g,h)
print(str(a))
print(int(b))
print(len(c))