Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Return the distance from the turtle to (x,y) in turtle step units.

Arguments:
x -- a number   or  a pair/vector of numbers   or   a turtle instance
y -- a number       None                            None

call: distance(x, y)         # two coordinates
--or: distance((x, y))       # a pair (tuple) of coordinates
--or: distance(vec)          # e.g. as returned by pos()
--or: distance(mypen)        # where mypen is another turtle(more...)

src/p/h/PhysicalTurtle-0.4/physicalturtle/turtle_main.py   PhysicalTurtle(Download)
 
# turtle functions
from turtle import (
    back, backward, begin_fill, begin_poly, bk,
    circle, clear, clearstamp, clearstamps, clone, color,