gh-140379: add hyperlinks to list and set (GH-140399)

add hyperlinks to list and set
This commit is contained in:
Krishna Chaitanya 2025-11-11 11:32:46 +05:30 committed by GitHub
parent 9cb8c52d5e
commit 92741c59f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,9 +12,8 @@ and adds some new things as well.
More on Lists
=============
The list data type has some more methods. Here are all of the methods of list
objects:
The :ref:`list <typesseq-list>` data type has some more methods. Here are all
of the methods of list objects:
.. method:: list.append(x)
:noindex:
@ -445,10 +444,11 @@ packing and sequence unpacking.
Sets
====
Python also includes a data type for *sets*. A set is an unordered collection
with no duplicate elements. Basic uses include membership testing and
eliminating duplicate entries. Set objects also support mathematical operations
like union, intersection, difference, and symmetric difference.
Python also includes a data type for :ref:`sets <types-set>`. A set is
an unordered collection with no duplicate elements. Basic uses include
membership testing and eliminating duplicate entries. Set objects also
support mathematical operations like union, intersection, difference, and
symmetric difference.
Curly braces or the :func:`set` function can be used to create sets. Note: to
create an empty set you have to use ``set()``, not ``{}``; the latter creates an