I know this is a basic question but here it's weird.
I have no idea why this is giving the error. plz help me with this. Thanks in advance
arr = [11,22,33,44,55,66,77]
brr = [1,2,3,4,55]
res_arr = arr
for i in range(len(arr)):
if arr[i] in brr:
res_arr.remove(arr[i])
Gives me the error List index out of range.
Any clues
EDIT :
This helped me solve the error.
res_arr = list(arr)