InterviewQs
Sign in
Convert to number to float, int, and string in Python
Back to snippets
Convert to float:
i
=
72
float
(i)
72.0
Convert to int:
int
(i)
72
Convert to str:
str
(i)
'72'