turtle.sety(y)
Parameters: | y – a number (integer or float) |
---|
Set the turtle’s second coordinate to y, leave first coordinate unchanged.
1 2 3 4 5 | >>> turtle.position() (0.00,40.00) >>> turtle.sety(-10) >>> turtle.position() (0.00,-10.00) |
turtle.sety(y)
Parameters: | y – a number (integer or float) |
---|
Set the turtle’s second coordinate to y, leave first coordinate unchanged.
1 2 3 4 5 | >>> turtle.position() (0.00,40.00) >>> turtle.sety(-10) >>> turtle.position() (0.00,-10.00) |
Designed by : w10schools
service@w10schools.com
Please login to continue.