Dec-28-2020, 05:25 AM
Addressing style part of code:
I think that it would be good idea to read and implement PEP 8 -- Style Guide for Python Code, specifically 'Function and Variable names':
I would remove
I would use f-strings instead of
I think that it would be good idea to read and implement PEP 8 -- Style Guide for Python Code, specifically 'Function and Variable names':
Quote:Function names should be lowercase, with words separated by underscores as necessary to improve readability.
Variable names follow the same convention as function names.
mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
I would remove
meas
part from majority of variable names as it is not needed (but look for not clashing with built-in functions like min, max, range).I would use f-strings instead of
.format
:>>> name = 'Bob' >>> occupation = 'The Builder' >>> f'Hello {name} {occupation}' 'Hello Bob The Builder'There is no need for empty space after
print
. It will not raise error, but it's not a good style.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.