On Day 2, we moved past simple variables and got into control flow—basically teaching code how to make decisions and repeat actions without writing the same lines twice.

1. Making Decisions: If-Else and Match-Case

We covered standard if, elif, and else statements, and then looked at Python 3.10's match-case structure. If you have five different user commands, an if-elif ladder gets messy quickly. Match-case works like a neat switchboard that routes inputs to the right block of code with zero clutter.

2. Loops, Functions, and the Chocolate Question

Next came for-loops (great for stepping through lists) and while-loops (great for keeping an app running until a user types 'quit'). We wrapped our math operations inside clean reusable functions with the 'def' keyword to build a 5-option terminal calculator.

During the lecture, Rashmi threw out a tricky question about while-loop boundary conditions and offered a chocolate to whoever could answer it correctly. I held back at first so other students could try, but when the room went completely silent, she called on me directly. I broke down the logic step by step, which impressed her completely. (Even though I'm still waiting on that chocolate, haha!).

3. The Birthday Webpage Surprise

The most memorable part of the day was finding out it was Rashmi's birthday. Over the lunch break, my friend and I quickly put together a custom web build at hbd.sagarithm.in with animations and a personal birthday wish. When we brought it up on screen in class, she had the biggest smile on her face. Doing quick, thoughtful things like that shows what coding is really about: making people happy.

Key Learnings

  • Writing clean decision logic with if-else and modern match-case statements.
  • Using for-loops and while-loops without accidentally triggering infinite loops.
  • Packaging logic into reusable functions with inputs and return values.
  • Shipping fast, creative web builds to bring energy and smiles to the team.

Tools & Stack

  • Python 3.11
  • VS Code
  • Terminal
  • hbd.sagarithm.in

Challenges Overcome

  • Handling invalid user input in a terminal calculator without letting the program crash.
  • Balancing classroom speed while keeping personal creative momentum high.

Task to be Performed

  • Configure VS Code and Python PATH variables properly.
  • Write scripts using if-elif-else and match-case pattern matching.
  • Build a terminal-based calculator running inside a continuous while-loop.
  • Deploy a custom birthday web page for our lead mentor.

Related Logs

Day 00

Day 00: Onboarding, Orientation, and the 2-Week AI Roadmap

Walking into Virtual Height for day zero: getting our badges, meeting our lead mentors, and mapping out what we will build over the next two weeks.

May 29, 20264 min readRead Log
Day 01

Day 01: First Day as an AI Intern, Python Basics, and a Wild Flex

Day 1 kicks off with lead mentor Rashmi. We break down AI vs ML vs Deep Learning, test Python terminal scripts, and demo my custom chatbot to the room.

Jun 01, 20264 min readRead Log