s = ' 123 'print(s.isnumeric()) # Falseprint(s.isdigit()) # Falseprint(int(s)) # 123
Standard input is empty
False False 123
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!