79218173

Date: 2024-11-23 15:25:25
Score: 1
Natty:
Report link
l = [1,2,3,4,5,6,7,8,9]
el = []
ol = []
for i in l:
    if i%2==0:
        el.append(i)
    else:
        ol.append(i)
print("Count of all the numbers:", len(l))
print("Count of even numbers:", len(el))
print("Count of odd numbers:", len(ol))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Priyanshu Biswal