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