LearnPy Hub
← Exceptions problems
Hard

Order of Clean-up

Read a number n. In a loop over i = 1..3, try to print 10 // (i − n); on ZeroDivisionError print skip; in finally print end i.

Input

One integer.

Output

Six lines.

Sample 1

Input
2
Output
-10
end 1
skip
end 2
10
end 3

Sample 2

Input
0
Output
10
end 1
5
end 2
3
end 3
solution.py
Output appears here
Order of Clean-up · Python practice problem · LearnPy Hub