Commit 3cc38c1c by BellCodeEditor

save project

parent 32bf019d
Showing with 5 additions and 11 deletions
a=["a","b","c","d"]
a.pop
a.remove("d")
print(a)
a.insert(2,"c")
print(a)
a.append("a")
print(a)
b=["x","y","z"]
a.extend(b)
print(a)
a=["a","b","c","d","e","f"]
print(a[:])
print(a[:4])
print(a[1:])
print(a[1:4])
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