python continue vs pass

Do you want to know the information about “python continue vs pass”. If yes, you’re in the correct tutorial.

python continue vs pass

for element in some_list:
    if not element:
        pass
    print 1 # will print after pass

for element in some_list:
   if not element:
       continue
   print 1 # will not print after continue

Final Thoughts

I hope this tutorial helps you to know about “python continue vs pass”. If you have any questions regarding this tutorial please let us know via the comment section. Share this tutorial with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment