bpo-37691: Let math.dist() accept sequences and iterables for coordinates (GH-14975) (GH-14984)

(cherry picked from commit 6b5f1b496f0b20144592b640b9c975df43a29eb0)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index ff937d2..776768d 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -394,7 +394,8 @@
 .. function:: dist(p, q)
 
    Return the Euclidean distance between two points *p* and *q*, each
-   given as a tuple of coordinates.  The two tuples must be the same size.
+   given as a sequence (or iterable) of coordinates.  The two points
+   must have the same dimension.
 
    Roughly equivalent to::