Commit d6083276 by BellCodeEditor

save project

parent 34def604
Showing with 18 additions and 5 deletions
a=['a','b','c']
a.pop(1)
a.remove('c')
a.insert(1,'b')
a.append('c')
b=['x','y','z']
a.extend(b)
print(a[2:5])
print(a)
\ No newline at end of file
a=['华雄']
c=['颜良','文丑']
a.extend(c)
print(a)
\ No newline at end of file
name=['Jonh','Sam','Lily','Anna','Daming','Heler']
name[2]='Nina'
name.insert(5,'Sally')
name.remove('Anna')
a=['XiaoLi','Qiang','Neo']
name.extend(a)
print(name[2:6])
print(name)
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