Commit f25d1d6d by BellCodeEditor

auto save

parent 188ff8c9
Pipeline #12757 failed in 0 seconds
Showing with 5 additions and 397 deletions
import random
arr=['a','b','c','d','e','f'] arr=['a','b','c','d','e','f']
for i in range(len(arr)):
arr.pop(3) print(arr[i],end=" ")
print(arr) print()
for i in arr:
arr.remove('b') print(i,end=" ")
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