using turtle library in python 3 code example

Example 1: turtle functions

# .clear(#turtle) clears whole screen, if turtle provide then only turtle input
# .goto(x,y) Sends turtle to specified location
# .home() Returns to (0,0)
# .setx(x) Sends turtle to specified location keeping current y
# .sety(y) Sends turtle to specified location keeping current x
# .distance(x, y) Returns own distance from specified location.
# .towards(x,y) Returns angle of in degrees to turn to target
# .penup() Stop marking
# .pendown() Start marking
# .isdown() returns bool to see if pen is marking
# .speed() turtle speed from fastest to slowest(0, 10, 6, 3, 1)
# .Showturtle() show
# .Hideturtle() hide
# .isvisible() is visible
# .pen() shows all current data of a turtle

Example 2: how to draw in python

import turtle