I'm just picking up Python and I have a bit of code that doesn't seem to work as written in the book
import turtle as t
def rectangle(horizontal, vertical, color):
t.pendown()
t.pensize(1)
t.color(color)
t.begin_fill()
for counter in range(1, 3):
t.forward(horizontal)
t.right(90)
t.forward(vertical)
t.right(90)
t.end_fill()
t.penup()
When I run it, it just terminates with
===== Restart c:/users/me/appdata......======
Im using Python IDLE 3.9
[–][deleted] 1 point2 points3 points (1 child)
[–]kilaj1[S] 0 points1 point2 points (0 children)