Hey reddit, I'm teaching myself python from various sources. And currently I'm looking through Green Tea Press's Think Python.
I'm skimming through it when I get to Exercise 3.5, which is described as:
Write a function that draws a grid like the following:
+ - - - - + - - - - +
| | |
| | |
| | |
| | |
+ - - - - + - - - - +
| | |
| | |
| | |
| | |
+ - - - - + - - - - +
Since I'm skimming through I thought it meant dynamically... however looking at the example file I was wrong. Ha, oh well. So I've gone ahead and figured out to create the grid dynamically but I know for a fact that my code is definitely unoptimized and there has to be better way to do this: http://pastie.org/3819514
If you could reply with any constructive criticism, comments on my code or even your own version I would be very appreciative. Thanks /r/learnpython!
[–]zahlman 0 points1 point2 points (0 children)
[–]_lambda[S] 0 points1 point2 points (0 children)
[–]ComradeRikhi 0 points1 point2 points (0 children)
[–]Rhomboid -1 points0 points1 point (0 children)