Try This
import turtle import turtle wn = turtle.Screen() wn.setup(800, 600) babbage = turtle.Turtle() babbage.shape("triangle") n = int(input("How many legs should this sprite have? ")) angle = 360/n for i in range(n): # draw the leg babbage.right(angle) babbage.forward(65) babbage.stamp() # go back to the middle and turn back around babbage.right(180) babbage.forward(65) babbage.right(180) babbage.shape("turtle") print("done") wn.exitonclick()
Run
Clear