Skip to content

Instantly share code, notes, and snippets.

@TiuTalk
Created June 5, 2012 21:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TiuTalk/2877917 to your computer and use it in GitHub Desktop.
Save TiuTalk/2877917 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
def MultiploDeTres(numero):
return not numero % 3
def MultiploDeCinco(numero):
return not numero % 5
def FizzBuzz(numero):
if MultiploDeTres(numero) and MultiploDeCinco(numero):
return "fizzbuzz"
if MultiploDeTres(numero):
return "fizz"
if MultiploDeCinco(numero):
return "buzz"
return numero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment