Skip to content

Instantly share code, notes, and snippets.

Marco Antonio Islas Cruz markuz

Block or report user

Report or block markuz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pythonodds.py
numbers = [12, 37, 5, 42, 8, 3]
even = []
odds = []
for num in numbers:
if num % 2: # non-zero result
odds.append(num)
continue
even.append(num)
print even
print odds
You can’t perform that action at this time.