Commit f056b8f6 by BellCodeEditor

save project

parent 200c3b41
Showing with 12 additions and 0 deletions
'''
name=["John","Sam","Lily","Anna","Daming","Helen"]
name[2]="Nina"
name.insert(6,"Sally")
name.pop(3)
print(name)
'''
name=["John","Sam","Nina","Daming","Sally","Helen"]
a=["XiaoLi","Qiang","Neo"]
name.extend(a)
print(name[2:7])
\ No newline at end of file
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