3 things to remember about programming in Python
- If one wants to retrieve a value using a custom function, one must use the "return" keyword. For example, simply calling .get(key) on a dictionary will not magically return the .gotten(key) value!
- If one prints a method that prints statements, one will notice an extraneous "None" printed out. That is because the method returned None. Solution: don't print the method; just call it.
- If one has an alarm programmed into one's wristwatch, after which one has privately agreed to no longer do any programming, one should listen to one's self. Otherwise, one bangs head against one's desk trying to fix the two aforementioned "bugs".
Oy.