The joy of coding

CODINGPYTHONLEARNING

I wrote a solution to a python exercise today. With the University of Helsinki MooC, a fun thing that they do is they have an option to show model solution. I guess some LLM provides a solution for the exercise as well.

Most of the times, the model solution is more elegant. This time, I looked at my solution and I was like - I like mine better.

That gave me joy.

Anywho - the program was a fairly simple piece of code - create a square based on the text and the length of the square provided by the user.

For example for “ay”, 3, output would be:

aya
yay
aya

Yeah, that’s a square.

UPDATED