+ 5
why this code don't work in sololearn compiler
from turtle import* forward(120) left(90) color("red") forward(120) left(90) color("blue") forward(120) left(90) forward(120) color("black")
6 ответов
+ 13
Because turtle require TKinter. TKinter is for standalone apps like windows app so will not work here.
+ 5
Gerar Poul
And you can search in sololearn code by 'turtle'. Someones made turtle in web with including scripts in html-pages. 😉
+ 3
Sololearn dosent do visual effects, Turtle is visual, and sololearn is a compiler, Which doesnt support it so prolly why its not workin
+ 3
"Turtle” is a Python feature like a drawing board unfortunately sololearn playground not support visual .
+ 3
You can only run console programs on Sololearn compilers.
+ 1
// Otherwise, you can install via pip
》pip install turtle