micropython/tests/basics/try-finally-return.py

8 lines
105 B
Python

def func1():
try:
return "it worked"
finally:
print("finally 1")
print(func1())