Write a program to read 6 numbers and create a dictionary having keys EVEN and ODD. Dictionary's value should be stored in list. Your dictionary should be like:
{'EVEN':[8,10,64], 'ODD':[1,5,9]}
Source Code
even=[]
odd=[]
for i in range(6):
n = int(input('Enter any number: '))
if n%2 == 0:
even.append(n)
else:
odd.append(n)
d = {}
d['Even']=even
d['Odd']=odd
print(d)
Output