Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 19, 2019 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/f5f2c9ea891a366277a968f887752151 to your computer and use it in GitHub Desktop.
Save codecademydev/f5f2c9ea891a366277a968f887752151 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def delete_starting_evens(lst):
for first_number in lst:
if lst[0] % 2 == 0:
lst.pop(0)
delete_starting_evens(lst)
return lst
#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]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment