-
-
Save codecademydev/4081c175482abf29ba022650a0097985 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_even(x): | |
if x % 2 == 0: | |
return True | |
else: | |
return False | |
def purify(x): | |
for item in x: | |
if item % 2 != 0: | |
x.remove(item) | |
return x | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How about you do this instead.