pep8online icon indicating copy to clipboard operation
pep8online copied to clipboard

Names to avoid

Open Bryukh opened this issue 8 years ago • 0 comments

According to PEP 8: Names to Avoid Never use the characters 'l' (lowercase letter el), 'O' (uppercase letter oh), or 'I' (uppercase letter eye) as single character variable names.

In some fonts, these characters are indistinguishable from the numerals one and zero. When tempted to use 'l', use 'L' instead.

I put the following l = 20 I = 40 O = 30 into the online checker, and it doesn't recognize it as invalid

Bryukh avatar Oct 06 '16 05:10 Bryukh