How does the for loop work in Python?
Most container objects in Python can be looped over using a for statement. Behind the scenes, the for statement calls the built-in iter() function on the container object which returns an iterator. The iterator object has the __next__() method which is used to access elements in the container one at a time. When there are no more elements left, __next__() raises the StopIteration exception which tells the for loop that we’re done....
I created a blog (finally)
This is not my first attempt at starting a blog (not even the second). Honestly, I’ve lost count of how many times I thought of starting a blog, and then got lost configuring the theme but never got around to actually writing something, anything. Being able to express your thoughts into words is an important skill, and to do that you need to write more. So here I am, writing my first ever blog post....