Closed
Description
Documentation
Operation | Result | Notes |
---|---|---|
s[i] |
ith item of s, origin 0 | (3) |
- If i or j is negative, the index is relative to the end of sequence s:
len(s) + i
orlen(s) + j
is substituted. But note that-0
is still0
.
We can add a note: If the sequence is empty or i is outside the sequence range, IndexError
will be raised.
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Todo