python turtle how to change pen color code example
Example 1: how to change background color in python turtle
import turtle
wn=turtle.Screen()
wn.bgcolor("black")
wn.title("This is my screen title!")
Example 2: turtle python
from turtle import *
color('red', 'yellow')
begin_fill()
while True:
forward(200)
left(170)
if abs(pos()) < 1:
break
end_fill()
done()
Example 3: install turtle command
$ pip install turtle