Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Fizz Buzz by panarise
def checkio(number):
by_3 = "Fizz"
by_5 = "Buzz"
space =" "
res = (by_3 if number%3 == 0 else '') + (space if number%3 == 0 and number%5 == 0 else '') + (by_5 if number%5 == 0 else '')
if res:
return res
else:
return str(number)
May 12, 2016