Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
compressed solution in Creative category for Fizz Buzz by juestr
from itertools import compress
def checkio(number: int) -> str:
d3, d5 = number % 3, number % 5
return ' '.join(compress(('Fizz', 'Buzz', str(number)), (not d3, not d5, d3 and d5)))
May 31, 2019
Comments: