Exercise 12/15


#1

Hi! I’m running this code but doent’s seems to be right. However, the console isn’t telling me the error. Can you help me? Thx

numeros = [1, 2, 3]

def purify(lista):
lista_pares = []
  for c in lista:
    if c%2 == 0:
      lista_pares.append(c)
  return lista_pares
  
print purify(numeros)

#2

Missing block indent on that line.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.