Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created August 10, 2021 06:32
Embed
What would you like to do?
def remove_even(x):
for i in x[:]:
if (i % 2) == 0:
x.remove(i)
return x
a = [12, 15, 7, 9]
print(remove_even(a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment