1
I created a function that returns the odd numbers. How do I return the amount of numbers, for example 4 odd, 3 odd, and so on?
lista = [1,3,5,7,2,4]
impar =[]
def ehImpar(impar):
for impar in lista:
if impar % 2 != 0:
print(impar)
print(ehImpar(impar))
Good, Luis. Thank you, really!!
– edtech
@edtech if the answer met you consider giving the acceptance (click on "Thick Sign")
– Sidon