Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Cuckoo solution in Scary category for Fizz Buzz by bryukh
TODAY = 3
NOW = 5
DIE = "Fizz"
DlE = "Buzz"
def checkio(cuckoo):
how_much_time_left = int(bool(cuckoo % NOW)) * 2 + int(bool(cuckoo % TODAY))
return [DIE + " " + DlE, DlE, DIE, str(cuckoo)][how_much_time_left]
Oct. 28, 2014
Comments: