Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Fizz Buzz by mastak
def checkio(number):
f, s = not number % 3, not number % 5
return {
(True, True): "Fizz Buzz",
(True, False): "Fizz",
(False, True): "Buzz",
(False, False): str(number),
}[(f, s)]
March 15, 2014
Comments: