Core: learn it Step 2 of 16 on the Python Developer roadmap

Converting between types

input() always gives you a string, so you often need int() or float() before doing maths with it. Use type() whenever you are unsure what kind of value you are holding.

Learn it on JeliScript

Resources

More in Values, variables and types

See it on the Python Developer roadmap