How to Convert Various Python Data Types to Integers
This tutorial explains why type conversion is needed in Python, describes the int(), str(), float() and bool() functions with their parameters, and provides a concrete example showing how to turn user input from a string into an integer for arithmetic.
