Table of Contents

    Using the Python continue Statement: Guide and Examples

    With the continue statement we can stop the current iteration of the loop, and continue with the next:

    Example

    Do not print atnyla:

    Code:

    
    name = ["python", "atnyla", "code"]
    for x in name:
      if x == "atnyla":
        continue
      print(x) 
    

    Output:

     
     python 
     code