Skip to content

Instantly share code, notes, and snippets.

@ricardosiri68
Last active December 16, 2015 05:29
Show Gist options
  • Save ricardosiri68/5384554 to your computer and use it in GitHub Desktop.
Save ricardosiri68/5384554 to your computer and use it in GitHub Desktop.
def pares(lista,i=0):
if i<len(lista):
if lista[i]%2==0:
print lista[i]
pares(lista,i+1)
lista=[1,4,5,9,8]
# print pares ..... emmm hasta ahora no te diste cuenta que tenes
# que llamar a una funcion para que esta se ejecute
pares(lista)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment