Python program to count numbers of even and odd elements in an array
One Subscription, For Everything
The new cool way of learning and upskilling -
One Subscription access everything
Get Access to PrepInsta Prime
from FAANG/IITs/TOP MNC's

PrepInstaPrime
Get over 200+ course One Subscription
Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.
Login/Signup to comment












Python Code :
size = int(input(“Enter the Array Size : “))
arr = []
for i in range(size):
element = int(input())
arr.append(element)
print(arr)
x = list(dict.fromkeys(arr))
print(x)