Commit 3cc38c1c by BellCodeEditor

save project

parent 32bf019d
Showing with 5 additions and 11 deletions
a=["a","b","c","d"] a=["a","b","c","d","e","f"]
a.pop print(a[:])
a.remove("d") print(a[:4])
print(a) print(a[1:])
a.insert(2,"c") print(a[1:4])
print(a)
a.append("a")
print(a)
b=["x","y","z"]
a.extend(b)
print(a)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment