CodeType
Learn
…
←
Fundamentals
22 / 30
Up next
Parse a number
text =
"42"
n =
int
(text) f =
float
(
"3.14"
)
print
(n +
1
, f *
2
)
What you're solving
int() and float() convert text
Explain more ↓
Start typing →