what does bad color sequence mean in python turtle?
From the docs:
Each of r, g, and b must be in the range 0..colormode, where colormode is either 1.0 or 255 (see colormode()).
Your colormode is probably set to 1.0, so either the individual color coordinates need to be floats in the range 0 to 1, or you need to set the colormode to 255.
A very short and simplified answer is, it means the value passed to the pencolor() method has not been previously set via the Screen object method colormode().
A screen object must be created. And then, the color mode must be set. Thus, making it possible for the turtle pen to accept a tuple class object which contains a number ranging from 0 - 255. (255, 0, 20)
for example. Why? Because there is more than one way of setting the color mode.
e.g.
from turtle import Turtle
from turtle import Screen
# Creating a turtle object
bert = Turtle()
# Creating the screen object
screen = Screen()
# Setting the screen color-mode
screen.colormode(255)
# Changing the color of the pen the turtle carries
bert.pencolor(255, 0, 0)
# 'Screen object loop to prevent the window from closing without command'
screen.exitonclick()