thonny 질문

import random
colormode(255)
random.randint(0, 255)

def random_pencolor():
r = random.randint(0, 255)
g = random.randint(0, 255)
b = random.randint(0, 255)
return r, g, b

def wall(x, y,):
import turtle
t = turtle.Turtle()
t.shape(“turtle”)
turtle.colormode(255)
import random
random.randint(0, 255)
colormode(255)
def random_pencolor():
r = random.randint(0, 255)
g = random.randint(0, 255)
b = random.randint(0, 255)
return r, g, b

t.penup()
t.goto(x, y)
t.pendown()
t.begin_fill()
t.color(random_pencolor())
t.forward(180)

thonny 에선 컬러모드가 안되나요??
실행이 안됩니다…