I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Spiral

spiral

The pattern above can be generated using a while loop. Your task is to use a while loop to draw it! Your answer will only be accepted if the bulk of the drawing happens in a loop. The code below should help you get tkinter working.

from tkinter import *
master = Tk()
w = Canvas(master, width=600, height=600)
w.pack()
# add you code between here. The lines below are examples
w.create_line(0, 0, 600, 600)
# do not change from this point onwards.
mainloop()


You need to log in or create an account to submit code!

Leave a Reply

Your email address will not be published. Required fields are marked *

Information