I said I would never deal with code, and here I am running beginner Python exercises on Codedex. Music plays in the background while I think out loud. I type lines wrong and catch the same mistake again later. Modulo confuses me before it clicks. The BMI exercise took a turn. Put it on and work alongside me.

The Codedex route

Codedex is the platform I'm learning Python on. It costs money, and I think it's worth the money.

Vibe coding is the plan, and the goal is an attempt at Python. The background music comes from StreamBeats. The session stays mostly quiet, with a few thoughts out loud while I figure things out.

  • Hello World
  • Patterns
  • Initials in ASCII
  • A letter to my future self
  • Variables and data types
  • Fahrenheit to Celsius
  • BMI and Python operators

Variables and data types

I write one variable for each type. The integer is XP set to 30, then I do the float, a name for the string, and the boolean.

  • Integer is a whole number
  • Float is a decimal number
  • String is text
  • Boolean is true or false

Modulo and the BMI result

Modulo confuses me for a while. The first example uses six and two and returns zero, and I can't explain it at first. The sign gives back what is left over, not the split itself. Then it clicks.

For the BMI exercise I declare the values first, then plug in my own numbers. The answer comes out at 26.6, which lands in the overweight range. Next up is the BMI of an athlete.

  • Nine with the modulo sign and two: count how many twos fit in nine, and whatever does not fit is the answer
  • Eight with the modulo sign and two gives zero

Tools and links

  • Codedexcodedex.ioThe platform where I work through the Python exercises.
  • StreamBeatsstreambeats.comThe background music playing during the session.

Not sponsored.