-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataType.py
47 lines (41 loc) · 980 Bytes
/
dataType.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
# numeric integer
# এখানে ধনাত্মক , ঋণাত্মক , রাখা যায় ।
a = 33
b = -88
c = 88888800000000000000000000000088888888888
print(type(a))
print(type(b))
print(type(c))
#float
# এখানে ধনাত্মক , ঋণাত্মক , রাখা যায় ।
d = 89.9
e = -88.8
f = 888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888.888
print(type(d))
print(type(e))
print(type(f))
# complex ekhane kivabe china jay
g = 4+4j
h = 4+8j
print(type(g))
print(type(h))
z = 30
u = 33.44
m = 8j # j chara r hbe na
#int to float
l = float(z)
print("int to float" , type(l))
# int to complex
o = complex(z)
print("int to float" , type(o))
# float to complex
r = complex(u)
print('float to complex', type(r))
#float to int
q = int(u)
print('float to int', q)
#Boolean
print(type(True)) #<class 'bool'>
print(type(False))
y = 90<20
print(type(y)) #<class 'bool'>