Back to Lesson

else & finally Blocks

Write a full try/except/else/finally sequence.

Instructions

  • In a
    try
    block, print
    "Trying"
    .
  • In the
    except Exception:
    block, print
    "Failed"
    .
  • In the
    else:
    block, print
    "Success"
    .
  • In the
    finally:
    block, print
    "Done"
    .
main.py
main.py