Thank you to everyone who reacted to my post!
It looks like several people are interested in joining the 30 Days of AI challenge—and I’m excited to get started! 🚀
Starting tomorrow, I’ll begin creating and publishing the content.
My goal is simple: use AI to create easy-to-read, bite-sized learning materials that make artificial intelligence easier to understand—one day at a time.
I’ll document the entire journey and organize everything on DevOsome, an LMS with a built-in quiz generator and full course management system.
📚 Join the 30 Days of AI course:
https://www.devosome.com/courses/30-days-of-ai
Let’s learn AI together—30 days, one concept at a time. 🤖
As I have promised, I started to publish the daily lessons and quizzes on this course page.
Remember to enroll to the course, it is completely FREE!
https://www.devosome.com/courses/30-days-of-ai
On the day 3 there was that last question: Write a Python script that displays the following table
1 1 1 1 1
2 1 2 4 8
3 1 3 9 27
4 1 4 16 64
5 1 5 25 125
Now I was able to recreate it using this code: for row in range(1, 6):
print(row, end=" ")
for col in range(0, 4):
print(row ** col, end=" ")
print()
T
I do not fully understand how the code interacts to get those numbers to line up as they do. Can anyone explain it in a simple way? It seems to organize it as a row 1-5 and then muliply it by the "col" but I am just interested in the principle to understand it
The best way to understand code like that to me, is to try and run it with some pen and paper so you can know which values are being assigned on each iteration:
There's a pattern going on in the exercise. It's the one you figured out with your code. The first iteration goes something like this
1. The outer loop's "row" is going to be the value 1.
2. You print the 1 and a blank space
3. Your output to this point would be:
1
4. The inner loop's "col" value is 0.
5. You print row (which is 1 at this point) raised to the power of col (which is 0 at this point). This results in you printing 1 again.
Your output at this point would be:
1 1
This keeps going on and on until you reach out the end of both loops.
2 months into learning Python — here's what I've built so far
Started learning Python about 2 months ago and wanted to share a few projects I've built along the way. Still very much learning, but figured I'd put these out there in case they're useful or interesting to anyone else early in their journey too.
🧮 The Farr090 Calculator Framework
An OOP rebuild of my original calculator project. Handles all basic operations (+, -, *, /, //, %, **) with full input validation, and throws in a random fun fact about calculator history while you're at it.
🎓 AcademiaHub-Core
A command-line school management system — separate flows for students and teachers. Students take a timed history quiz that updates a shared gradebook; teachers can admit/remove students and apply a grade curve to the whole class.
✈️ TravelMate
A travel booking simulator. Pick a continent, then a country within it (validated against real nested data), get routed to a real airport, "pay" for your ticket, and pick up a random transportation history fact along the way.
🎯 GuessMatrix — Core
An OOP version of a classic number guessing game — tracks win streaks and keeps the game logic and input validation cleanly separated into their own classes.
Would love any feedback, especially on code structure/style — still figuring out what "good" Python looks like beyond just "it runs."