Aug-25-2018, 07:56 AM
idbadge = [[0 for i in range(x)] for i in range(y)]may be re-written as
id_badge = [[0] * columns for _ in range(rows)]Using one-letter variable - in general - is one of the most successful methods to write unreadable code. Reading PEP-8 is recommended
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.