Clarify "cardinality of" as "number of elements in" as many readers do

not have a math vocabulary.
This commit is contained in:
Gregory P. Smith 2016-02-08 09:59:14 -08:00
parent db28718ebe
commit 3b5d61fa6c
2 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,8 @@ operations:
+-------------------------------+------------+---------------------------------+
| Operation | Equivalent | Result |
+===============================+============+=================================+
| ``len(s)`` | | cardinality of set *s* |
| ``len(s)`` | | number of elements in set *s*
| | | (cardinality) |
+-------------------------------+------------+---------------------------------+
| ``x in s`` | | test *x* for membership in *s* |
+-------------------------------+------------+---------------------------------+

View File

@ -1779,7 +1779,7 @@ The constructors for both classes work the same:
.. describe:: len(s)
Return the cardinality of set *s*.
Return the number of elements in set *s* (cardinality of *s*).
.. describe:: x in s