Skip to content
CodeKruPro

try, except, else and finally when an error happens

Predict the outputEasyPython only
main.py
try:
    print("A")
    n = int("x")
    print("B")
except ValueError:
    print("C")
else:
    print("D")
finally:
    print("E")
print("F")

Graded by exact match. Spaces at the ends of lines and blank lines at the end do not count.

to answer and keep your progress. Reading is free for everyone.