diff --git a/python.md b/python.md index 1821eb080..26b8c7760 100644 --- a/python.md +++ b/python.md @@ -11,7 +11,7 @@ category: Python list[:-1] # returns all but the last element list[i] = val - list[i:j] = otherlist # replace ith to jth element with otherlist + list[i:j] = otherlist # replace ith to jth-1 elements with otherlist del list[i:j] list.append(item)