One of the early topics covered when learning to code deals with the built-in data structures in Python. Lists are usually learned early on, followed by dictionaries and tuples. Sets are not normally one of the earliest topics covered. However, that's not because they're complex but because they're used less often in Python. Understanding the… Continue reading Practise Using Lists, Tuples, Dictionaries, and Sets in Python With the Chaotic Balls Animation
Tag: list
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