+ 1
How to type int and float
6 Réponses
+ 6
Question not clear.
a = int('7')
b = float("9.45")
print(a)
print(b)
+ 2
Pro thanks but I want to write ✍ type
Like this
X=2
Print (type(x))
+ 2
did you mean:
print(type(x).__name__)
?
+ 2
Is this what you mean?
x = 2
y = 3.0
z = '4'
print(type(x))
print(type(y))
print(type(z))
- 1
Yeah pro
- 1
Is this