0
What is wrong in this code? Code in description
import turtle t=turtle.Turtle() turtle.backgroundcolor("black") colours=("blue","green","red","black") for x in range(100): t.pencolor(colours[x%4]) t.forward(x) t. left(70)
1 Answer
+ 3
Do this =>print(dir(turtle))
You will find it has no attribute backgroundcolor instead it has bgcolor