Hello rrtocode,
I have also used “for” and slicing and in this case the code works. Didn’t really understand from the replies why in this case it does and in the others it doesn’t.
def delete_starting_evens(lst):
for num in lst:
if num % 2 == 0:
lst = lst[1:]
else:
break
return lst