Last active
December 16, 2015 05:29
-
-
Save ricardosiri68/5384554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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