kuroko/test/testExceptionElseFinally.krk

14 lines
240 B
Python
Raw Normal View History

for i in range(3):
try:
print('hello world')
if i == 1:
break
except ValueError:
print('value error')
else:
print('no error')
finally:
print('and done')
print('finished')