- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3_dataTypes.py
More file actions
Latest commit
49 lines (40 loc) · 451 Bytes
/
Copy path3_dataTypes.py
File metadata and controls
49 lines (40 loc) · 451 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
44
45
46
47
48
49
'''
1) int
2) float
3) complex
4) str
5) bool
6) NoneType
7) list
8) tuple
9) set
10) dict
11) frozenset
12) bytes
13) bytearray
14) memoryview
15) range
'''
#integer
a=10
print(type(a))
#float
b=2.6
print(type(b))
#string
c="hello"
print(type(c))
#bool
d=True
print(type(d))
#complex
'''
.real: Returns the real part.
.imag: Returns the imaginary part.
'''
z=3+5j
print(type(z))
#nonetype
x=None
print(x)
print(type(x))