Remember learning to round in grade school? Me too! The only problem is I don’t use the idea very often. As a result, I don’t always remember how to round …
Today, I’m sharing a few ways to compute absolute value in Python. If you thought the standard library was the only way to get it done, buckle up!
The remainder operator is a staple in Java, but did you know it works on doubles as well? Now, you know!
In this article, we learn how to format a string in Python using a handful of techniques including concatenation and interpolation.
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.
Kicking of studying for the qualifying exam with a bit of number theory as the basis of RSA encryption. Wish me luck!
Today, I want to talk about the difference between statements and expressions in Computer Science and why ignoring that distinction has consequences.
When learning a new programming language, it can be helpful to play with the basic operations. That’s why I’ve written a lab for Java number exploration.
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.