Skip to content

Commit 8d989c0

Browse files
authored
Update programming.rst
1 parent d556714 commit 8d989c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/faq/programming.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ is a list, it makes a copy just like ``seq[:]`` would.
11761176
What's a negative index?
11771177
------------------------
11781178

1179-
Python sequences are indexed with signed numbers (0, positive numbers and negative numbers). For example, 0 is the 1st index and for positive indices, 1 is the 2nd index, 2 is the 3rd index and so forth. For
1179+
Python sequences are indexed with signed numbers (zero, positive numbers and negative numbers). For example, 0 is the 1st index and for positive indices, 1 is the 2nd index, 2 is the 3rd index and so forth. For
11801180
negative indices, -1 is the last index, -2 is the penultimate (next to last)
11811181
index and so forth. Think of ``seq[-n]`` as the same as ``seq[len(seq)-n]``.
11821182

0 commit comments

Comments
 (0)