![main.py B saved 1 #this function takes a list A and #returns a new list B which has all elements of A except the 1st three 3 def cutF3(A): 4. #create and store all elemtnts of A into B #from A[3] (4th element of A) to last element of A #8 -A[3:] > copy contents tfrom index 3 till last Index # which is same as B -A[3: len(A)] 6 7 10 return B #return new list 12 13 x- [1,2,3,4,5,6,7,8] #create a list 14 y -cutF3(x) 15 16 print(x) 17 print(y) 18 19 20 21 z =[.apple, banana. , mango, orange,lime,peach] 22 print(cut F3(z)) #modified list 23 print(z) #original list 24 25 26 27 w [a, b] #if list has less than 3 elements 28 29 print (cutF3 (w)) 30 print(w) #get new list # original list # modified list #another list # modified list #originał list](https://lh5.googleusercontent.com/PJD3_AW3-KvcScuQOyAedsVjdHkutqZd-ayj1qxSGyU9bhqdrIBkcr5JRkues_RmUq27FbxkRlgWjr5OxtyfDjBGccaC57knjfaxwQdsf95X-fIkS_BeGIqDUXd4Enlih0q0ShQU)
OUTPUT :

CODE :
#this function takes a list A and
#returns a new list B which has all elements of A except the 1st three
def cutF3(A) :
#create and store all elemtnts of A into B
#from A[3](4th element of A) to last element of A
#B = A[3:] => copy contents tfrom index 3 till last Index
# which is same as B = A[3: len(A)]
B = A[3:len(A)] #or B = A[3:]
return B #return new list
x = [1,2,3,4,5,6,7,8] #create a list
y = cutF3(x) #get new list
print(x) # original list
print(y) # modified list
z = [‘apple’,’banana’,’mango’,’orange’,’lime’,’peach’] #another list
print(cutF3(z)) #modified list
print(z) #original list
w = [‘a’,’b’] #if list has less than 3 elements
print(cutF3(w)) # modified list
print(w) #original list