[docs] next() and count() method don't work.

Bob Gailer bgailer at gmail.com
Tue Mar 12 10:46:39 EDT 2019


> count the recurrence of the items in a set
I am redirecting this to the python help list.

Your question is unclear since normally the word recurrence would imply two
or more of the same item whereas a set has only one of each item.

If you want to know how many items there are in a set use the len function,
e.g. len(myset)

As an aside when asking a question like this keep it simple: how do I
determine the size of a set?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20190312/c113afec/attachment.html>


More information about the docs mailing list