Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b53234

Browse files
committed
#20740: desquarify 2.
1 parent 94ee389 commit 6b53234

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/tutorial/introduction.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,9 @@ values. The most versatile is the *list*, which can be written as a list of
371371
comma-separated values (items) between square brackets. Lists might contain
372372
items of different types, but usually the items all have the same type. ::
373373

374-
>>> squares = [1, 2, 4, 9, 16, 25]
374+
>>> squares = [1, 4, 9, 16, 25]
375375
>>> squares
376-
[1, 2, 4, 9, 16, 25]
376+
[1, 4, 9, 16, 25]
377377

378378
Like strings (and all other built-in :term:`sequence` type), lists can be
379379
indexed and sliced::
@@ -389,12 +389,12 @@ All slice operations return a new list containing the requested elements. This
389389
means that the following slice returns a new (shallow) copy of the list::
390390

391391
>>> squares[:]
392-
[1, 2, 4, 9, 16, 25]
392+
[1, 4, 9, 16, 25]
393393

394394
Lists also supports operations like concatenation::
395395

396396
>>> squares + [36, 49, 64, 81, 100]
397-
[1, 2, 4, 9, 16, 25, 36, 49, 64, 81, 100]
397+
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
398398

399399
Unlike strings, which are :term:`immutable`, lists are a :term:`mutable`
400400
type, i.e. it is possible to change their content::

0 commit comments

Comments
 (0)