+ 2
More spiral challenges
Many people have challenged the square spiral and some of them also make the rectangle ones, but that's not enough! Have you ever tried a spiral pyramid, a spiral hexagon, or even a octagon? Let's try them! They will be much different from the rectangle ones! By the way, I've done squares, rectangles and pyramid, and now I'm challenging a hexagon, next challenge is to make a octagon, which I still have to think a while about how to make. XD I'll put my codes in comment.
4 odpowiedzi
+ 1
here is the hexagon with full explanation
https://code.sololearn.com/cFW3rHN0DRut
+ 1
Scarlet, congrats on making those codes that do the rectangle, square and pyramid spirals... But your codes are unreadable. Maybe that is the goal. Otherwise, never forget about the Zen of Python when coding in Python
https://www.python.org/dev/peps/pep-0020/
0
all of them are made by directly printing without storing the numbers in arrays
Square
https://code.sololearn.com/cm2C0g8V5ylX
Rectangle
https://code.sololearn.com/cZGiT4dCgn54
Pyramid
https://code.sololearn.com/cnvfJ5IyLxpZ
0
cyk I know they are unreadable because I was challenging to make one-liners.
And, thank you for remind me the Zen. I really have forgot it...