Answers for "difference between continue and pass in python"

2

continue vs pass python

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
Posted by: Guest on December-23-2020

Code answers related to "difference between continue and pass in python"

Python Answers by Framework

Browse Popular Code Answers by Language