You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`collections.abc.Collection` is a type of unordered collection. Collections supports only `__len__`, `__iter__`, `__contains__` operators, and does not support indexing or slicing.
148
+
-`collections.abc.Sequence` is **subclass** of `Collection`, is a type of ordered, indexable collection. Sequence supports `__getitem__()`, `__reversed__` in addition to the methods of `Collection`. Sequences can be sliced and indexed.
149
+
150
+
See [Collections Abstract Base Classes](https://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes) to check all the methods available for each type.
0 commit comments