Learn to Code via Tutorials on Repl.it!

← Back to all posts
A guide to the more advanced python turtle statements
gatorade322

turtle.goto()

the turtle.goto() function tells the turtle to go to a certain place on the screen. type the x coordinate, than the y coordinate. When you run it the turtle will go to that place on a screen. If it doesn't work, you might be on a different version of python that doesn't support it.

turtle.ycor() and turtle.xcor()

the turtle.ycor() and turtle.xcor() functions can be used for many things. Like this:

this may not work on repl.it. Than there's the while True: function. You need to make sure you capitalize the True. This is a forever loop, because it is always true. If you want to make a loop until the user does something for example:

Those are a few advanced things in python. There is probably a lot more, but you can learn those using the internet. Thankyou for reading this, and goodbye

Voters
gatorade322
Comments
hotnewtop
YuAndy

use Python(with Turtle) on repl.it and all of that should work

gatorade322

f