numbersTaken = [2, 5, 12, 13, 17]
print("Here are the numbers that are still available:")
for n in range(1, 20):
if n in numbersTaken:
continue # skip anything after this and go to the next repetition
[source code] Python Programming Tutorial - 11 - continue
Post a Reply
Nothing to see here.
This section is all about snakes! Just kidding.
|Bucky Roberts Administrator|