list_in_function
Anonymous
plain_text
05/27/2022 2:00 AM
292 B
13
Indexable
def count():
even = 0
odd = 0
for i in list:
if i%2==0:
even+=1
else:
odd+=1
return even, odd
even, odd = count(list)
list = [12, 34, 56, 77, 99, 102]Editor is loading...