I am really new here and I hope someone can help me…
I don’t understand how … this code:
while len(lst) > 0 and lst%2==0:
lst = lst[1:]
#Uncomment the lines below when your function is done
print(delete_starting_evens([4, 8, 10, 11, 12, 15]))
print(delete_starting_evens([4, 8, 10]))
[11, 12, 15]
Code is instructions for the computer to carry out.
Do you know what each instruction there does?
If not, then look at only the one you don’t know, eliminate the rest, figure out that operation, then come back to the rest.
Or if you do know each thing… follow what it says.
Don’t forget that you can modify it to see how it changes, print things out and so on.