Please forgive me for being such a noob. I have a class assignment where I need to have my code printed to the terminal as it is executed. This is beyond my current scope, and I can't see a way to find an easy answer. Anything would be greatly appreciated. Thanks again and sorry again.
from turtle import *
import random
s1=Screen()
s1.colormode(255)
t1=Turtle()
t1.ht()
t1.speed(0)
def jumpto():
x=random.randint(-300,300)
y=random.randint(-300,300)
t1.penup()
t1.goto(x,y)
t1.pendown()
def drawshape():
shape=random.choice(["circle","shape","star"])
if shape=="circle":
t1.begin_fill()
x=random.randint(25,200)
t1.circle(x)
t1.end_fill()
if shape== "shape":
x=random.randint(25,200)
y=random.randint(3,8)
t1.begin_fill()
for n in range (y):
t1.fd(x)
t1.rt(360/y)
t1.end_fill()
if shape=="star":
x=random.randint(25,200)
t1.begin_fill()
for n in range (5):
t1.fd(x)
t1.rt(720/5)
t1.end_fill()
def randomcolor():
r=random.randint(0,255)
g=random.randint(0,255)
b=random.randint(0,255)
t1.color(r,g,b)
r=random.randint(0,255)
g=random.randint(0,255)
b=random.randint(0,255)
t1.fillcolor(r,g,b)
def pensize():
x=random.randint(1,20)
t1.pensize(x)
for n in range (1000):
randomcolor()
pensize()
drawshape()
jumpto()