'Python Turtle Graphics college assignment
I have a college assignment, and I was able to do the first part, but I don’t know how to do the second part. If anybody could help.
my code soo far
import turtle
import random
def regularPolygon(t,d,n):
wn = turtle.Screen()
t = turtle.Turtle()
for i in range(n):
t.forward(d)
t.left(360/n)
return
for i in range(4):
n = random.randint(3,10)
regularPolygon('t', 40 ,n)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
