Hi all! First post!
I don’t fully understand when/why to use the CONTINUE feature in Python. I find that I can achieve the same output with and without using CONTINUE.
For example:
food = [“apples”, “pears”, “bananas”, “steak”]
for i in food:
… if i == “apples”:
… continue
… print(i)
…
pears
bananas
steakfood = [“apples”, “pears”, “bananas”, “steak”]
for i in food:
… if i != “apples”:
… print(i)
…
pears
bananas
steak
Thank you in advance!