Why this not running? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
9th Jul 2021, 5:42 AM
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™ - avatar
5 Answers
- 1
because turtle module cannot work in sololearn context (text only output, execution on sololearn servers)
9th Jul 2021, 5:48 AM
visph
visph - avatar
+ 3
Try learning about indentation for i in range(255*2): colormode(255) if i < 255//3: r+=3 elif ...
9th Jul 2021, 5:50 AM
Simba
Simba - avatar
+ 2
Try this, from Kirk Schafer https://code.sololearn.com/W7Peu9IQ6KkE
9th Jul 2021, 6:02 AM
David Ashton
David Ashton - avatar
+ 1
Thank you visph..... I didn't know that
9th Jul 2021, 5:50 AM
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™ - avatar
- 1
you can run turtle in web (html/css/js) code playground context, but this require some js knowledge to use library such as skulpt wich emulate less or more python ^^ however, Simba is right: your code is not valid as lacks of indentation ;P
9th Jul 2021, 5:53 AM
visph
visph - avatar