The Little Things

Something I love about learning Python is the ability to rapidly answer your own questions particularly on basic functionality. I was writing a little script and I knew I wanted to use a dictionary for one aspect of it. However, I wasn't sure if I could use the append method on a particular key of the dict. I figured I could since the item was a string, but maybe the behavior is weird?

Fear not! I opened a console and did:

dict_test = {'testkey': [1,2]}

And as hoped it output [1,2,3]! This sort of feedback and ease of self-learning is amazing.

These sort of little things are a huge part of what makes learning to be a better programmer so much fun!