Python: End of discussion!


#1

class Solution:

    def fizzBuzz(self, n):
        ans=[]
        for i in range(1,n+1):
            ans.append('Fizz'*(i%3<1)+(i%5<1)*'Buzz' or i)
        return ans