What does continue function do in python

What does ‘continue’ do in python

Hey @method2503159596 welcome to the Codecademy Community! :smiley:

continue basically returns the contro backl to the beginning of a loop.

For example:

for letter in 'Django':    
    if letter == 'D':
        continue
    printf("Current Letter: {letter}")

will output:

Current Letter: j
Current Letter: a
Current Letter: n
Current Letter: g
Current Letter: o
4 Likes