Requirements: You need to have ArcGIS Pro installed and the associated installation of jupyter notebooks as described in previous blogs.
This is a novel way of presenting all things python, arcpy and eventually through the Python API for ArcGIS Pro...
Background link Arcgis Pro 2... Jupyter Notebook Setup Basics
The link here...distance.pdf .... should open up the explanatory pdf for the accompanying jupyter notebook. If not... click the attachment below.
Unfortunately, Jive isn't at the stage to allow for this type of interactive content.
If you have comments, questions or found a bug, send them to me via email.