14 lines
240 B
Python
14 lines
240 B
Python
|
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')
|