Skip to content

Glossary: Python Basics

Type conversion

Also written: converting, int(), float(), str()

Changing a value to another type by calling the type's name as a function, such as `int("3")`, `float("8.50")` or `str(25)`. It is needed because `input()` always gives text.

Where the book teaches it

Related terms

input()ValueError