LearnPy Hub
← Exceptions problems
Medium

else and finally

Read a line. Try converting it to int. On error print bad; if it worked print good; always print done last.

Input

One line.

Output

Two lines.

Sample 1

Input
5
Output
good
done

Sample 2

Input
x
Output
bad
done
solution.py
Output appears here
else and finally · Python practice problem · LearnPy Hub