Why i can't use import function to import turtle in the python programs. It shows errors to me. What can i do, plz help me out?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why i can't use import function to import turtle in the python programs. It shows errors to me. What can i do, plz help me out??

25th May 2018, 3:52 AM
Aditya Mahimkar
Aditya Mahimkar - avatar
3 Answers
+ 4
Import is not a function, it is a statement. So, use "import turtle" instead of "import(turtle)" for importing things. If it doesn't work, then SoloLearn's Code Playground probably doesn't support it.
25th May 2018, 3:57 AM
LunarCoffee
LunarCoffee - avatar
+ 3
ohhk thanks for the help..
25th May 2018, 12:32 PM
Aditya Mahimkar
Aditya Mahimkar - avatar
+ 3
Try this for using turtle in SL https://www.sololearn.com/post/30297/?ref=app
8th Sep 2018, 8:17 PM
Burey
Burey - avatar