how to make any player hit a ball using python turtle

if p.goto(-360, 0)

Here is what the above code is Doing:
1. Creating a turtle named p
2. Setting the turtle’s shape to a turtle
3. Setting the turtle’s color to green
4. Setting the turtle’s pen color to black
5. Setting the turtle’s speed to 10 (faster than the default)
6. Moving the turtle to the left 360 units
7. Moving the turtle up 0 units