Toggle navigation
Erik Rood
About
Contact
Looking to land a data science role? Practice interviewing with a
few questions per week
.
Convert to number to float, int, and string in Python
Convert to float:
i
=
72
float
(
i
)
72.0
Convert to int:
int
(
i
)
72
Convert to str:
str
(
i
)
'72'
Sign up to get weekly Python snippets in your inbox