Skip to content

Instantly share code, notes, and snippets.

@raelmax
Created May 26, 2012 13:11
Show Gist options
  • Save raelmax/2793888 to your computer and use it in GitHub Desktop.
Save raelmax/2793888 to your computer and use it in GitHub Desktop.
# 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