How are Python instance variables different from standard variables? Are they the same thing as data attributes? And what are data attributes? And what do kids on a school trip have got to do with all of this? Questions, questions and more questions. Understanding instance variables in Python tends to happen in stages. First, you… Continue reading Python Instance Variables and Kids on A School Trip
Tag: Beyond Beginners
The terms beginners, intermediate, and advanced are often used, but they’re really hard to define. What’s intermediate for a beginner is beginner’s stuff for someone advanced, and so on. Beginners has a clear starting point, so some posts will be tagged as beginners. Others will be tagged Beyond Beginners. It’s up to you to judge whether the level is fine for you.
Python List Comprehensions and Michael Phelps’ Olympic Medal Cabinet
Python list comprehensions can look a bit strange at first sight. However, with a bit of practice and experience, they quickly become a go-to tool for a Python programmer. But Python's list comprehensions are not just syntactic sugar that condense three lines of code into one. And they're not there just to make you look… Continue reading Python List Comprehensions and Michael Phelps’ Olympic Medal Cabinet
Stacks and Queues, Deques, and My Daughter’s Teddy Bears
Thanks to my daughter's teddy bears/soft toys/stuffed toys/whatever else you may call them, I now have a better understanding of stacks and queues in Python. I'll get back to stacks and queues in a bit to discuss how to implement them, when to use them, and when not. But first, you'll need to meet my… Continue reading Stacks and Queues, Deques, and My Daughter’s Teddy Bears


