Commit 188ff8c9 by BellCodeEditor

auto save

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