Lesson 22: Error Handling

try:
  num = int(input("Enter number: "))
  print(num)
except:
  print("Invalid input")
Next Lesson →