As someone who covers a lot of beginner concepts, I've always sort of avoided one of the trickier concepts: recursion. Well, today I decided to take a stab at it.
Today, I want to talk about the difference between statements and expressions in Computer Science and why ignoring that distinction has consequences.
Usually, I try not to write too many opinion pieces about code, but I felt like I should mention that it's okay to test private methods.
As with many posts in this series, I'm interested in examining some of the pitfalls when learning to code. Today, we'll cover the pitfalls when copying mutable data types.
Recently, one of my students just introduced me to `i = i++`. Care to guess how it works? It's probably not what you think.
Forget endless if statements! It's time to solve Rock Paper Scissors using modular arithmetic in Python.