Why i used is_ instead of is ?

Clarification to readers

Posted by Afsal on 22-Mar-2022

Hi Pythonistas!

In our previous post, I used is_ instead of is. Some of our readers asked why did I follow that naming convention. So this is a very short post to clarify the naming convention.

We know that “is” is a reserved keyword in Python. While coding if a variable conflict with reserved keyword pep8 suggest adding _(underscore) at the end of the name that is why we used is_ instead of is

Thanks for sharing your questions. Please feel free to contact afsal@parseltongue.co.in