Merge pull request #1173 from vsilverman/patch-1

Updated python.md
This commit is contained in:
Rico Sta. Cruz 2019-09-01 16:31:21 +10:00 committed by GitHub
commit daed05eac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)