What I mean is when I declare a function like
import turtle
import random
turt = turtle.Turtle()
x = random.randint(-300,300)
y = random.randint(-300,300)
def randomspot():
turt.penup()
turt.goto(x,y)
turt.pendown()
and declear the function twice, it goes to the same spot. What should I do?