try.
def inner(items):
print("in", end=" ")
return items[3]
def outer(items):
v = inner(items)
print("out", end=" ")
return v
try:
print(outer([1, 2, 3]))
except IndexError:
print("caught")
What does the program print?Log in to join the discussion.
Loading…