so for an assingment, I needed to make a function. I wanted to do something cool, so I made a thing that makes squares be a random color, and in a random spot, but for some reason, it wont even show a turtle. Here's the code.
import turtle
import random
turt = turtle.Turtle()
turt.speed(100)
def randspotcolor():
turt.penup()
turt.goto(
random.randint(-300,300),
random.randint(-300,300)
)
turt.pendown()
turt.color(
random.randint(0,225),
random.randint(0,225),
random.randint(0,225)
)
def square():
for i in range(4):
turt.forward(100)
turt.right(90)
def dothething():
for i in range(4):
randspotcolor()
square