So i need to write a function that takes the length of the side and the number of sides of the figure as an argument and then draws a corresponding equilateral shape with the turtle. I have to use this function to draw 20 random shapes (must use random). Also the turtle must move the position in the meantime.
At the moment I have gotten this far, I don't know what to do next tho.
import random
from turtle import*
def func(lenght, nr_of_sides):
for element in range(20):
forward(lenght)
right(nr_of_sides)
a = random.randint(1,100)
b = random.randint(1,100)
func(a, b)
Thanks for help!