How can I convert a string to integers in Python without encountering a TypeError

welcome to shbcf.ru