except block ends with continue.
thirds = ""
for w in ["python", "go", "c", "java"]:
try:
thirds += w[2]
except IndexError:
thirds += "?"
continue
thirds += "."
print(thirds)
What is the output?Log in to join the discussion.
Loading…