Sep-26-2018, 06:33 PM
This is the code:
thanks in advance
import turtle Win = turtle.Screen() t = turtle.Turtle() def shape(length, sides): for i in (1,sides): t.forward(length) t.left(360 / sides) shape(100, 8) Win.exitonclick()the problem is that not matter what sides is it only draws the first 2 lines of the shape
thanks in advance