Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
_Topaz_'s Solution solution in Clear category for Fizz Buzz by _Topaz_
def checkio(number: int) -> str:
# Your code here
# It's main function. Don't remove this function
# It's using for auto-testing and must return a result for check.
solution = []
if (number%3==0):
solution.append("Fizz")
if (number%5==0):
solution.append("Buzz")
# replace this for solution
if not solution:
return str(number)
return " ".join(solution)
Oct. 17, 2019