Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Fizz Buzz solution in Creative category for Fizz Buzz by lxf42
FB = {15:"Fizz Buzz", 5:"Buzz", 3:"Fizz"}
def checkio(number: int) -> str:
for n in FB:
if not number % n:
return FB[n]
return str(number)
March 1, 2022
Comments: