the code is:-
from turtle import *
turtle = Turtle()
screen = Screen()
screen.bgcolor(255,100, 0)
side = int(input("Write the sides number?"))
for i in range(side):
turtle.forward(50)
turtle.left(360 / side)
Download
0 formats
No download links available.
How to draw shapes with given sides in edublocks python | NatokHD