print(int('12\n')) print(int('\n123')) print(int('1234 ')) print(int(' 1235')) print(int('1236c')) print(int('a1237')) print(int('123 8')) #https://pt.stackoverflow.com/q/347387/101
Standard input is empty
12 123 1234 1235
Traceback (most recent call last): File "./prog.py", line 5, in <module> ValueError: invalid literal for int() with base 10: '1236c'