This is an assignment in one of my classes. This is a grape vine that is randomly generated, but whenever I generate it there is always a stray grape that is in the bottom of the vine. How can I get rid of it? I can't find a single line that could possibly place it there, and I am clueless as of what to do.
# imports and variables
from decimal import localcontext
import turtle as trtl
import random as rng
# starting vine coords, global vars
global y
y = -300
global x
x = -70
# color list
rCol = ["red" , "green"]
# speed change
trtl.tracer(True)
trtl.tracer(0,5) # actual speed
# init vine
trtl.penup()
trtl.goto(x,300)
trtl.pendown()
trtl.pencolor("brown")
trtl.pensize(20)
trtl.pendown()
trtl.goto(-70,y)
trtl.penup()
# definitions
def drawGrape(rad): # take args for radius
locX = x
locY = y
trtl.pensize(3)
trtl.pencolor("green")
trtl.fillcolor(rng.choice(rCol))
trtl.left(45)
for oLoop in range(2):
trtl.begin_fill()
trtl.circle(rad,90)
trtl.circle(rad//2,90)
trtl.end_fill()
trtl.right(180)
trtl.penup()
trtl.pendown()
# code with established functions
# starting grape coords
x = -70
y = -290
trtl.penup()
for dLoop in range(15):
trtl.pendown()
drawGrape(rng.randint(10,30))
trtl.goto(-70,y)
trtl.penup()
trtl.goto(0,y)
y += 40
# stop program from closing after finished
input()
