1Yes, there is a difference.
2
3continue forces the loop to start at the next iteration
4while pass means "there is no code to execute here"
5and will continue through the remainder or the loop body.
6continue will jump back to the top of the loop.
7pass will continue processing.
8https://stackoverflow.com/questions/9483979/is-there-a-difference-between-continue-and-pass-in-a-for-loop-in-python
1for element in some_list:
2 if not element:
3 pass
4 print 1 # will print after pass
5
6for element in some_list:
7 if not element:
8 continue
9 print 1 # will not print after continue