Sep-28-2018, 08:36 PM
Use OOP, with properly designed classes.
And write according to PEP-8 - because otherwise quite a few Pythonista (myself included) will refuse looking at your code
And write according to PEP-8 - because otherwise quite a few Pythonista (myself included) will refuse looking at your code
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.