I had so much fun writing the previous blog post about Python scoping that I decided to expand it into a free e-mail course. Each day (for five days), you’ll receive another lesson about how scopes work in Python, and why this is important for you to know as a ...
Let’s say I want to try something on a list in Python. While I usually like to call my test list objects “mylist”, I sometimes forget, and create a variable named “list”: list = ['a', 'b', 'c'] If you’re like me, then you might not immediately notice that you’ve just ...