Skip to content

Instantly share code, notes, and snippets.

View markuz's full-sized avatar

Marco Antonio Islas Cruz markuz

View GitHub Profile
@markuz
markuz / pythonodds.py
Created November 2, 2016 18:14
Python odds
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