DEV Community

Cover image for Humbled by the Basics: Week 1 with Python
Onabanjo Kofoworola
Onabanjo Kofoworola

Posted on

Humbled by the Basics: Week 1 with Python

One would think beginner Python is just printing "Hello, World!", copy-pasting a few lines of syntax, and vibing.Until you sit down to actually do the tasks, and suddenly you realize you need to use your entire brain.

Going through the initial crash course material, all I could see were blocks upon blocks of code. At first glance, everything looked straightforward. Then things escalated quickly. I was looking at the screen thinking, “Wait, what is this?” I could literally feel my brain expanding and buffering in real-time.

It reminded me so much of primary school mathematics: the teacher’s classroom example is 2 + 2 = 4, but the homework questions ask you to calculate the total energy required to push a car (HOT TEARS😭).

Here is what went down, how I tackled 10 core logic questions plus 5 mini projects, and why this assignment completely cured my habit of rushing past the fundamentals.

Phase 1: Warming Up (And Getting Humbled)

I decided to put my thinking cap on and take the questions one by one instead of staring at the whole list and panicking.

The first couple of questions were smooth sailing:
Outputting "Hello, World!" (classic tradition).
Taking user inputs for name and age and formatting them into a greeting message using f-strings.
Using the modulo operator (% 2) to separate even numbers from odd numbers.

Then came the loop questions🥲.

Generating a multiplication table from 1 to 12 was clean enough with a for i in range(1, 13) loop. But then I hit Factorial. Even though I knew the mathematical definitions, translating them into working Python loops made me pause and think real deep. Then a term I had never heard “Fibonacci”. It made me question my mathematical knowledge.

Eventually, I got it all done, but getting there required slowing down, being open to learning new things and remembering that a single problem in code can always be solved in multiple ways.

Phase 2: The Mini Projects: Python in the Real World

Once the 10 quick tasks were out of the way, the assignment moved into 5 mini-projects. This was my favorite part because you actually see how the syntax connects to stuff people use every day:

The Student Grades System: It involved taking scores for 5 subjects, calculating an average, and chaining if-elif-else conditions to award letter grades (A, B, C, or F). It hit me that this is literally the baseline script behind automated school portal grading.

Simple Calculator: Handling operations (+, -, *, /) with conditional branching, plus catching edge cases like trying to divide by zero so the script doesn't crash.

Shopping Cart: Using a Python dictionary to store item names and prices dynamically in a while loop until typing "done", then summing up the grand total.

The Number Guessing Game: Importing random, generating an integer between 1 and 20, and running a loop with "too high" or "too low" hints until the user nails it (hehe🤖).

File Handling: Taking input for student names, writing them to a .txt file using the with open(...) context manager, and then reading them back to the terminal.

The Biggest Challenge & How I Beat It

My biggest hurdle wasn’t that I didn’t know Python syntax. It was the disconnect between thinking you know a concept versus translating an open-ended problem statement into working logic. You think you understood the concepts until you are humbled by questions🙂‍↕️.

When you read through notes or watch a tutorial, everything makes sense because someone else already solved the puzzle. When you’re sitting alone in a Colab notebook with a blank cell, your mind freezes: Where do I start? What variable do I initialize first? Should this be a while loop or a for loop?

Whenever I felt stuck, I did three things:
Stepped away from the code editor: I took a pause to think, and tried to understand the question in simple basic english.
Re-read the documentation: Instead of guessing, I went back to the course notes and official Python docs to clarify how specific built-ins and loops actually behave.
Tested incrementally: Instead of writing 20 lines and praying, I wrote two lines, printed the output, verified it worked, and built from there.

Lessons Taken to Heart🙂‍↔️

If this assignment taught me anything, it’s that you should never rush the foundation.

Although I wasn’t completely new to Python, I had rushed through the basics in the past just to get to the “flashy” stuff. And when your foundation has cracks, the moment you get a problem without a pre-made template, you get stuck.

I also learned that:
There’s never just one way to code a solution: The same message can be said in ten different tones; the same task can be coded with loops, list comprehensions, or recursion.

Basic commands build practical tools: An if statement can grade an exam. A dictionary can run a supermarket checkout. A file handling script can save a business database. The tools aren't complicated; it's how you combine them.

I got humbled, took a step back, and rebuilt my confidence with the fundamentals. And honestly? I’m glad I did it right this time.

Module 2 next… shall we?

Top comments (0)