A loop uses pass and a statement after the if and else blocks.
for w in ["to", "be", "or", "not"]:
if len(w) == 2:
pass
else:
print(w, end=" ")
print(w[0], end="")
print()
What does the program print?
Log in to join the discussion.
Loading…