I will fully admit that I spent way too much time on this. I made this way more complicated than it needed to be.
However, that meant that it challenged me. I used sys.stdout.flush() and .write() to (essentially) reprint over the same line to create the illusion of rolling numbers. Oh yeah, I also made the numbers roll. You’ll see all that in the video below:
Preview code…
Class: Intro to Computer Science
License: GPLv3