Code viewer for World: Activity 2.6
# ============================================================
# SECTION 6 — try / except
# ============================================================

raw = await input("Enter a number: ")

try:
    number = int(raw)
    print("You entered:", number)
except:
    print("That was not a valid number.")

# TASK: Run the world twice — once typing a number, once typing a word.
#       Notice how try/except stops the program from crashing.