What data types would the following data be?
a) 32
b) 4.5
c) “hello!”
d) True
e) “9”
f) str(12.3)
a) int
b) float
c) string
d) boolean
e) string
f) string
What will be the output of the following code?
print(bool(1))
print(float(32))
print(int(False))
print(float(int(False)))
print(bool(int(0.5)))
True
32.0
0
2.0
False