+ 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")

15th Feb 2019, 6:26 PM
Gerar Poul
Gerar Poul - avatar
6 ответов
+ 13
Because turtle require TKinter. TKinter is for standalone apps like windows app so will not work here.
15th Feb 2019, 6:34 PM
Hubert Dudek
Hubert Dudek - avatar
+ 5
Gerar Poul And you can search in sololearn code by 'turtle'. Someones made turtle in web with including scripts in html-pages. 😉
16th Feb 2019, 7:47 PM
Николай Шаповаленко
Николай Шаповаленко - avatar
+ 3
Sololearn dosent do visual effects, Turtle is visual, and sololearn is a compiler, Which doesnt support it so prolly why its not workin
16th Feb 2019, 2:41 AM
Potato Hacker
Potato Hacker - avatar
+ 3
"Turtle” is a Python feature like a drawing board unfortunately sololearn playground not support visual .
16th Feb 2019, 4:47 AM
Vishnu
Vishnu - avatar
+ 3
You can only run console programs on Sololearn compilers.
16th Feb 2019, 8:09 AM
Umar Sunusi Maitalata
Umar Sunusi Maitalata - avatar
+ 1
// Otherwise, you can install via pip 》pip install turtle
15th Feb 2019, 8:04 PM
program
program - avatar