Question #259

The code snippet below is PEP8 compliant.
var = True
if var is True: 
    print("Python")

According to PEP8, if var is True: should be written if var: . (python.org/dev/peps/pep-0008)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: