Last active
January 17, 2018 23:17
-
-
Save ysnerdem/5335ee43631b7776da63ea532c83d03e to your computer and use it in GitHub Desktop.
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 even_number(num): | |
if num % 2 != 0: | |
raise ValueError("this number is not even number.") | |
else: | |
return num | |
lst = [3,4,5,6,7,8,9,16] | |
for i in lst: | |
try: | |
print(even_number(i)) | |
except: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment