>>> a = ' 5 5 ' >>> a.strip() '5 5' >>> int(a.strip()) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid literal for int() with base 10: '5 5'
>>> a = ' 5 5 ' >>> int(a.replace(" ", "")) 55 >>>
Edited by Dimitrij, 19 August 2023 - 16:36.