Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #continue #pass #python
ADD COMMENT
Topic
Name
9+6 =