try: number = int("42")except TypeError: pass print(f"Número: {number}") # Número 42
Standard input is empty
Número: 42
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!