These nooby Python habits give away your inexperience in Python. Improve your code and your prestige just a bit by ditching those habits and doing things the...
Woah, very good tips presented very concisely! I am guilty of many of these.
I will immediately start using
withopen(filename) as:
and using zip() to synchronize list variables.
As for PEP8… I will use four spaces for indentation if I intend to share a script with someone, but for personal scripts I always use a single space indentation and I don’t have any issues. Do pros usually stick to the four space rule in python?
Woah, very good tips presented very concisely! I am guilty of many of these.
I will immediately start using
with open(filename) as:
and using zip() to synchronize list variables.
As for PEP8… I will use four spaces for indentation if I intend to share a script with someone, but for personal scripts I always use a single space indentation and I don’t have any issues. Do pros usually stick to the four space rule in python?