re: Fizz Buzz in Every Language VIEW POST

FULL DISCUSSION
 
    print('\n'.join(['FizzBuzz' if x % 15 == 0 else 'Fizz' if x % 3 == 0 else 'Buzz' if x % 5 == 0 else str(x) for x in range(1,101)]))

 

Is this a Python solution using a massive list comprehension?! I like it.

code of conduct - report abuse