Skip to content

Commit d1685ed

Browse files
committed
Merge pull request yasoob#74 from SanketDG/tuplefix
fix ambiguity in namedtuple in collections.rst
2 parents f9542ff + 1239c61 commit d1685ed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

collections.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ sure you read the official documentation after reading this.
199199
``namedtuple``
200200
^^^^^^^^^^^^^^^^^^
201201

202-
You might already be acquainted with tuples. A tuple is a lightweight
203-
object type which allows to store a sequence of immutable Python
204-
objects. They are just like lists but have a few key differences. The
205-
major one is that unlike lists, **you can not change a value in a
206-
tuple**. In order to access the value in a tuple you use integer indexes
207-
like:
202+
You might already be acquainted with tuples. A tuple is basically
203+
a immutable list which allows you to store a sequence of values
204+
separated by commas. They are just like lists but have a few key
205+
differences. The major one is that unlike lists, **you can not
206+
reassign an item in a tuple**. In order to access the value in a
207+
tuple you use integer indexes like:
208208

209209
.. code:: python
210210

0 commit comments

Comments
 (0)