<jupyter_start><jupyter_text>Write a program that outputs the string representation of numbers from 1 to n.But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. For numbers which are multiples of both three and five output “FizzBuzz”.Example:    n = 15,    Return:    [        "1",        "2",        "Fizz",        "4",        "Buzz",        "Fizz",        "7",        "8",        "Fizz",        "Buzz",        "11",        "Fizz",        "13",        "14",        "FizzBuzz"    ]<jupyter_code>class Solution:
    def fizzBuzz(self, n):
        '''
        n: int
        rtype: List[str]
        '''
        res = []
        for i in range(1, n+1):
            if i %15 == 0:
                res.append('FizzBuzz')
            elif i % 3 == 0:
                res.append('Fizz')
            elif i % 5 == 0:
                res.append('Buzz')
            else:
                res.append(str(i))
        return res
    
# test
n = 15
Solution().fizzBuzz(n)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12547528517110265, 'fraction_numerical': 0.02376425855513308, 'mean_word_length': 1.525179856115108, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '120000', 'license': 'MIT', 'n_tokens_mistral': 346, 'n_tokens_neox': 324, 'n_words': 102, 'path': 'DSA/others/fizzBuzz.ipynb', 'repo_name': 'lance-lh/Data-Structures-and-Algorithms', 'size': '1052'}