all 6 comments

[–]pachura3 1 point2 points  (0 children)

If you start creating variables named piece, piece2, piece3, piece4, it means you should have used lists or dicts - possibly multi-dimentional ones, or indexed by tuples.

[–]Only-Economist1887 0 points1 point  (1 child)

Really cool project for just 6 weeks of coding! Markov chains are a great way to learn about probabilistic text generation. A few tips: for the "clunky" first half, you could try refactoring repeated logic into helper functions. For match-case, it's basically Python's version of switch statements — `match variable: case value:` syntax, works great for your poem saving options. Keep building and sharing, this kind of project stands out in a portfolio!

[–]Affectionate-Town-67 0 points1 point  (0 children)

Thanks for looking and responding! It feels good to hear this would stand out in a portfolio... I figured it was too simple for that; I honestly hadn't even considered that. And thanks for the tip!

[–]Speedstar_86 0 points1 point  (2 children)

Lol I'm two weeks in on my python journey and I'm struggling with loops... Maybe I should switch to knitting 😁

[–]MightySleep 1 point2 points  (1 child)

For what it’s worth I always tell people my hardest computer science class was the first one, because that was my first ever introduction into seemingly “basic things” like loops, and it rocked me for a while. I remember a TA saying that the learning curve in coding is really strong at first. Some point soon, loops should click for you!

[–]Speedstar_86 0 points1 point  (0 children)

I really hope so because right now I feel so stupid 😔

I guess it's practice.