Kaydet (Commit) 53c1892d authored tarafından Jim Fasarakis-Hilliard's avatar Jim Fasarakis-Hilliard Kaydeden (comit) Mariatta

Fix small typos in introduction and datastructures of tutorial (GH-272)

* Fix small typos in introduction and datastructures
* Use iterable instead of L in the doc for list.extend
üst 6329aea7
......@@ -22,11 +22,11 @@ objects:
Add an item to the end of the list. Equivalent to ``a[len(a):] = [x]``.
.. method:: list.extend(L)
.. method:: list.extend(iterable)
:noindex:
Extend the list by appending all the items in the given list. Equivalent to
``a[len(a):] = L``.
Extend the list by appending all the items from the iterable. Equivalent to
``a[len(a):] = iterable``.
.. method:: list.insert(i, x)
......@@ -68,7 +68,7 @@ objects:
The optional arguments *start* and *end* are interpreted as in the slice
notation and are used to limit the search to a particular subsequence of
*x*. The returned index is computed relative to the beginning of the full
the list. The returned index is computed relative to the beginning of the full
sequence rather than the *start* argument.
......
......@@ -359,7 +359,7 @@ The built-in function :func:`len` returns the length of a string::
Information about string formatting with :meth:`str.format`.
:ref:`old-string-formatting`
The old formatting operations invoked when strings and Unicode strings are
The old formatting operations invoked when strings are
the left operand of the ``%`` operator are described in more detail here.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment