Skip to content

Commit a343368

Browse files
[3.14] Fix quotes in string representation of a tutorial example (GH-163063) (#163084)
Fix quotes in string representation of a tutorial example (GH-163063) (cherry picked from commit d95c6a0) Co-authored-by: Ali <105012194+aliysnm@users.noreply.github.com>
1 parent 0e1bf8e commit a343368

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Doc/tutorial/introduction.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ through all other variables that refer to it.::
438438
True
439439
>>> rgba.append("Alph")
440440
>>> rgb
441-
["Red", "Green", "Blue", "Alph"]
441+
['Red', 'Green', 'Blue', 'Alph']
442442

443443
All slice operations return a new list containing the requested elements. This
444444
means that the following slice returns a
@@ -447,9 +447,9 @@ means that the following slice returns a
447447
>>> correct_rgba = rgba[:]
448448
>>> correct_rgba[-1] = "Alpha"
449449
>>> correct_rgba
450-
["Red", "Green", "Blue", "Alpha"]
450+
['Red', 'Green', 'Blue', 'Alpha']
451451
>>> rgba
452-
["Red", "Green", "Blue", "Alph"]
452+
['Red', 'Green', 'Blue', 'Alph']
453453

454454
Assignment to slices is also possible, and this can even change the size of the
455455
list or clear it entirely::

0 commit comments

Comments
 (0)