Sitemap

Let’s code: Build a number guesser from scratch in 15 minutes

1 min readNov 15, 2023

Yesterday, I wrote about a great coding project idea that my coworker told me about.

Today, I’m building that project in Python to show you how it works & what you can learn from it! Maybe you can build it in another language or library you’re learning!

I strongly believe in building small coding projects & quickly iterating on them to make them more advanced, so let’s put it into practice.

Watch on YouTube

In this video:

  • 00:39 Generating random numbers
  • 02:48 Getting user input
  • 04:46 Exception handling
  • 06:29 Checking valid guesses
  • 08:35 Adding a max size
  • 09:24 Refactoring (functions/exceptions)
  • 12:29 Cleaner error handling
  • 13:30 Fixing a bugs
  • 14:37 What all we’ve learned
  • 15:59 Adding one more feature (couldn’t resist)
  • 16:48 Where to go from here

Daily list

I write something new every day for over 2,000 software developers on my email list. Join us!

--

--

No responses yet