Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 401 Bytes
__author__ = 'Avinash'
numbers = []
n = int(input("Enter number of elements: \t"))
for i in range(1, 1 + n):
allElements = int(input("Enter element: \t"))
numbers.append(allElements)
even_lst = []
odd_lst = []
for j in numbers:
if j % 2 == 0:
even_lst.append(j)
else:
odd_lst.append(j)
print("Even numbers list \t", even_lst)
print("Odd numbers list \t", odd_lst)