Commit ebe428e3 by BellCodeEditor

save project

parent a9033e33
Pipeline #12759 failed in 0 seconds
Showing with 39 additions and 0 deletions
import random
a=["a","b","c","d","e","f"]
a.pop(3)
print(a)
a.remove("b")
print(a)
a.insert(2,"d")
print(a)
a.append("g")
print(a)
b=["x","y","z"]
a.extend(b)
print(a)
print(a[:])
print(a[1:])
print(a[:len(a)])
print(a[2:4])
for i in range(10):
a.append(random.randint(1,100))
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