How To Convert Strings to Integers in Python 3
Strings can be converted to integers by using the int() method. If your string does not have decimal places, you’ll most likely want to convert it to an integer by using the int() method. In this quick tutorial, you’ll learn how to convert a string to an integer.