Finally Return Overrides Try
def get_status_code():
try:
return 200
finally:
return 500
print(get_status_code())
What does this print?
Sign in to answer questions and track your progress
Sign Indef get_status_code():
try:
return 200
finally:
return 500
print(get_status_code())
What does this print?
Sign in to answer questions and track your progress
Sign In