I'm Doing this simple list to remove the elemen from the list depend on the the number that. i gave to it
mylist = ["apple", "banana", "cherry"]
ls =2
for i in range(0,ls):
print(mylist[i])
print(mylist)
i wanna remove the other from the array and keen the rest depend on the ls if it 1 it will keep the first if it 2 it will keep the first two and so on