-
Notifications
You must be signed in to change notification settings - Fork 0
/
python_Data_types.py
59 lines (58 loc) · 987 Bytes
/
python_Data_types.py
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
x=5
print(type(x))
def strfun():
x="Hello world"
print(type(x))
def intfun():
x=20
print(type(x))
def floatfun():
x=20.5
print(type(x))
def complexfun():
x=1j
print(type(x))
def listfun():
x=["apple","banana", "cherry"]
print(type(x))
def tuplefun():
x=("apple", "banna", "cherry")
print(type(x))
def rangefun():
x=range(6)
print(type(x))
def dictfun():
x={"name" : "Jonh" , "age":36}
print(type(x))
def setfun():
x={"apple","banana","cherry"}
print(type(x))
def frozensetfun():
x=({"apple","banana","cherry"})
print(type(x))
def boolfun():
x= True
print(type(x))
def bytesfun():
x=b"Hello"
print(type(x))
def bytearrayfun():
x=bytearray(5)
print(type(x))
def memoryviewfun():
x=memoryview(bytes(5))
print(type(x))
strfun()
intfun()
floatfun()
complexfun()
listfun()
tuplefun()
rangefun()
dictfun()
setfun()
frozensetfun()
boolfun()
bytesfun()
bytearrayfun()
memoryviewfun()