Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.
This commit is contained in:
parent
db28718ebe
commit
3b5d61fa6c
|
@ -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* |
|
||||
+-------------------------------+------------+---------------------------------+
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue