What does "continue" actually do - Python

So basically, if i have an if statement and inside it i put continue, what happens?


# Some variables
a = True
b = True
trues = 0

# If-Statements
if a == True:
if b == True
    trues += 1

so the continue, what does it do, does it let the execution continue to the statement after it or no?

It just skips everything that executes next in the loop and repeats the loop again

1 Like

Alrighties, thanks

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.