class Solution(object):

    def fizzBuzz(self, n):

        """

        :type n: int

        :rtype: List[str]

        """
        number=[]
        for i in range(1, n+1):

            if i % 3 == 0 and i % 5 == 0:
                number.append("FizzBuzz")
            elif i % 3 == 0:
                number.append("Fizz")
            elif i % 5 == 0:
                number.append("Buzz")
            else:
                number.append(str(i))
        return number

#a = Solution()
#print a.fizzBuzz(15)

Create 412.py