#Submission
submission.py
class Solution:
def fizzBuzz(self, n: int) -> List[str]:
ans = []
for nums in range(1, n + 1):
if nums % 15 == 0:
ans.append("FizzBuzz")
elif nums % 5 == 0:
ans.append("Buzz")
elif nums % 3 == 0:
ans.append("Fizz")
else:
ans.append(str(nums))
return ans