Commit 86563905 by BellCodeEditor

save project

parent aeb1a833
Showing with 29 additions and 0 deletions
# name=["John","Sam","Lily","Anna","Daming","Helen"]
# name[2]='Nina'
# name.insert(5,"Sally")
# name.pop(3)
# a=["XiaoLi","Qiang","Neo"]
# name.extend(a)
# print(name)
# print(name[3:7])
a=["a","b","c"]
a.pop(1)
print(a)
a.remove("c")
print(a)
a.insert(1,"b")
print(a)
a.append("c")
print(a)
b=["x","y","z"]
a.extend(b)
print(a)
\ No newline at end of file
a=["a","b","c"]
for i in range(len(a)):
print(a[i])
for i in a:
print(i)
\ 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