Continue Statements

continue statements are used inside of while loops to jump back to the start of the loop and reevaluate the loop’s condition . In for loop’s it jumps to the next iteration of the loop.

Example #

while True:
    print('Who are you?')
    name = input()
    if name != 'Joe':
        continue
    print('Hello, Joe. What is the password? (It is a fish.)')
    password = input()
    if password == 'swordfish':
        break
print('Access granted.')