I’ve spent my free time the last several days obsessively watching television. I’ve never understood how people could watch TV while also doing something else because when I watch, it is the thing I’m doing. I look at myself and ask “Is everyone like this or just me?” I don’t mean that in a, “There […]

Read More

Python’s for/else construct

I’ve been a Python program for a few years now, but I’ve only just encountered the ‘for/else’ construct. I was changing a conditional to a for loop, but accidentally left behind the else block. My initial reaction after looking back at the code was, “Oh, the else must run if the ‘for’ block never executes,” […]

Read More Python’s for/else construct