Write a python program that takes 10 inputs from the user, and then prints how many inputs are odd and how many inputs are even. Use for loop.
Sample input:
2
6
8
3
9
2
6
4
3
7
Sample Output:
Even numbers = 6, Odd numbers = 4
Notice: I want this answer in different way without using append, format, len etc.
odd = 0
for _ in range(10):
if int(input()) % 2:
odd += 1
print(f'Even numbers = {10 - odd}, Odd numbers = {odd}')