Created
May 26, 2012 13:11
-
-
Save raelmax/2793888 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
# funcao para retornar o numero dado + 2 | |
def funcao(x): | |
return x + 2 | |
# funcao para imprimir o valor passado pra funcao | |
def funcao2(x): | |
return "O numero dado foi %d" % x | |
# funcao com if | |
def funcao3(x): | |
if x > 10: | |
print "%d eh maior que 10" | |
else: | |
print "%d eh menor que 10" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment