Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Najfajniejsze rozwiązanie solution in Clear category for Fizz Buzz by magda_kudrycka
#Your optional code here
#You can import some modules or create additional functions
def checkio(number):
if number % 15 == 0:
str(number)
return(number and 'Fizz Buzz')
elif number % 3 == 0:
str(number)
return (number and 'Fizz')
elif number % 5 == 0:
str(number)
return (number and 'Buzz')
return str(number)
#Some hints:
#Convert a number in the string with str(n)
#These "asserts" using only for self-checking and not necessary for auto-testing
Oct. 14, 2016
Comments: