I'm writing a python script wherein I need to use the continue word.
I know that it is a python keyword.
So how should I write my script so that python will not complain that I am using a keyword as a string literal.
Thanks in advance for your time.
I'm writing a python script wherein I need to use the continue word.
I know that it is a python keyword.
So how should I write my script so that python will not complain that I am using a keyword as a string literal.
Thanks in advance for your time.
You should use something like:
_continue
But why not using more descriptive and longer variable name?! like:
continue_whatever or go_on ...
The normal practice is to use a trailing underscore to use a keyword that already being used by the language, like continue_ or input_.
I don't think anyone would think that just overwriting keywords is every a good idea.