What does it do? It prints a four by four grid pattern.
Thrilling, I know
But I got really excited once I debugged it and it worked.
Code is h...
For further actions, you may consider blocking this person and/or reporting abuse
Good work! Seems like a project that can grow with you, too, since you could change how you go about printing the grid.
Good point! It'd be interesting to make it print a grid with n rows and m columns (taking n, and m, integers). Or perhaps working on being line-efficient and expressive.
And thanks!
I don't know python well, so I couldn't tell at a glance if it already did this, but my first thought was also that it could be a good exercise to change it to working recursively for n number of rows/cols
Interesting. There is currently no recursion. I had been thinking about adding the capability of printing n rows and m columns, but I was thinking of doing that through loops, not recursion. Do you have a quick description or example of what recursion might look like in this situation?
Good question - I'll think on that a bit and let you know! I had an idea that it would probably work but didn't really ponder it very hard.
Well, I couldn't articulate what I was thinking well without code, so I decided to take the opportunity for a little practice and wrote up a quick application that does basically what yours does (though I stuck to a single symbol for each "square" instead of building them nicely as you did. It's in C#, but hopefully you can still get the idea:

Thanks! That's really engouraging. :)
Great work! I don't know Python but after taking a look at your code I'm interested to learn. It was so easy to understand what you wrote!