I get a File "<string>", line 5, in dot turtle.Terminator
error whenever I try to draw a dot
in turtle python. I am trying to draw a dot
from a list of rgb colors.
import turtle
import random
list = [(225, 156, 75), (33, 95, 140), (127, 184, 208), (222, 207, 106), (25, 52, 73), (223, 78, 51), (165, 21, 43), (142, 98, 42), (183, 47, 80), (125, 196, 140), (206, 129, 158), (37, 134, 48), (103, 11, 55), (206, 91, 106), (139, 178, 46), (146, 207, 222), (54, 54, 84), (76, 31, 23), (28, 156, 170), (9, 79, 116), (83, 73, 40), (227, 181, 160), (220, 174, 183), (160, 208, 177), (86, 159, 111), (107, 123, 156)]
choice = random.choice(list)
tim = turtle.Turtle
turtle.colormode("rgb")
screen = turtle.Screen()
screen.exitonclick()
turtle.dot(90,random.choice(list))