Created
October 18, 2016 16:42
-
-
Save kartikmaji/69dee0e977b1209290cce9899d18aaa4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import turtle | |
| turtle = turtle.Turtle() | |
| radius = input("Input radius of circle(Ideally it's 200): ") | |
| turtle.penup() | |
| turtle.right(90) | |
| turtle.forward(radius) | |
| turtle.right(270) | |
| turtle.pendown() | |
| turtle.circle(radius) | |
| turtle.speed('fastest') | |
| for i in range(0,180): | |
| turtle.circle(radius/2) | |
| turtle.penup() | |
| turtle.circle(radius, 2) | |
| turtle.pendown() | |
| i += 1 | |
| turtle.circle(radius/2) | |
| turtle.getscreen()._root.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment