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)

3rd Oct 2020, 11:39 AM
Omkar Pawar
1 ответ
+ 3
Do this =>print(dir(turtle)) You will find it has no attribute backgroundcolor instead it has bgcolor
3rd Oct 2020, 11:46 AM
Abhay
Abhay - avatar