import time time.sleep(1.5) print("This program doesn't take capital letters or fractions, unless told, don't use decimals") print("") time.sleep(1.5) print("But it will take colors and 'solid' numbers.") print("") time.sleep(1.5) print("Have fun!!") print("") time.sleep(2) print("Loading...") print("") time.sleep(1) print("Loading......") print("") time.sleep(1) print("Loading.........") print("") time.sleep(1) print("*************************Loaded*************************") print("") time.sleep(1) sides = input("Please input a number for the sides of your shape (1-90) Note: Can have decimals in this range") degrees = input("Please input a number for the degrees of the corners(45-360) Note: Can have decimals in this range") c1 = input('What should the first line color of the spiral be?') c2 = input('What should the seccond line color of the spiral be?') c3 = input('What should the third line color of the spiral be?') c4 = input('What should the fourth line color of the spiral be?') c5 = input('What should the background color of the spiral be?') pensize = input('How thick should the pen be? (1-10) Note: Can have decimals in this range') speed = input('How fast should the pen move? (0 = fastest, 1 = slowest) Note: Can have decimals in this range') import turtle colors = (c1, c2, c3, c4) s = turtle.Screen() t = turtle.Turtle() s.bgcolor(c5) t.speed(speed) t.pensize(pensize) for a in range(1000): t.pencolor(colors[a%4]) t.forward(sides) t.forward(a) t.right(degrees)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question