Hi I want to use Turtle in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hi I want to use Turtle in python

I wrote the code so python turtle graphics appeard . my problem is I dont know how to make a file and put this code inside it... import turtle bob=turtle.Turtle() print(bob) turtle.mainloop() What do they exacly mean by making a file?Do they mean to open notepad??

8th Jul 2018, 5:35 AM
Violet
Violet - avatar
5 Answers
+ 1
Have fun! turtle is so cool. if you havent yet, try a loop in your turtle code. like for i in range(500): forward(i) right(91)
8th Jul 2018, 4:13 PM
Brandon Bradshaw
Brandon Bradshaw - avatar
+ 1
Have you downloaded the python program, IDLE? If not, that would help a lot. Yes files could also be written in notepad and saved with the .py extension but i believe you need an interpreter to run them. So once you download IDLE, open it and then go new file and it should open up a seperate window where you write and save your programs. Then click run and run it in the interpreter. Hope this helped
8th Jul 2018, 6:21 AM
Brandon Bradshaw
Brandon Bradshaw - avatar
+ 1
I downloded python3.7.0 from www.python.org & Thank you☺
8th Jul 2018, 10:35 AM
Violet
Violet - avatar
+ 1
the colon goes at the end of the loop statement. exactly like i showed in the last comment. and the commands that are to be looped must be indented
9th Jul 2018, 3:30 AM
Brandon Bradshaw
Brandon Bradshaw - avatar
0
yeah I wanted to do that but I stuck in another problem! How should I end the loop? Where should i exacly put ':'?
8th Jul 2018, 6:28 PM
Violet
Violet - avatar