What is the difference between continue
and pass
in Python? I am fairly new to Python and am trying to get my code looking and acting more professionally. I can see their value, but to my untrained mind, I can't see the clear difference. I have looked here but I couldn't really see what the main difference was. I noticed continue
is shown in a loop example to continue to the next loop and pass
is a 'place holder' in classes, etc.
I guess my question is, how necessary are they? Should I focus on them now to add professionalism to my code, or is it more of a take it or leave it scenario?
Thanks in advance for your response.