Jul-02-2018, 08:02 PM
Couple of more things
- you never compare Boolean to
True
orFalse
- because the result will be ... Boolean. For negating Boolean, use operatornot
- You may check that a value lies between to boundaries in an easier way
57 <= ord(c) <= 65
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.