diff --git a/fizzbuzz.py b/fizzbuzz.py index 8f45358c63b4802cae8a7fc827d0ea12c466a5bb..62662d919241b5ae77db38c40f23dd2332551588 100644 --- a/fizzbuzz.py +++ b/fizzbuzz.py @@ -5,5 +5,14 @@ def fizzbuzz(n:int) -> str: And for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz". """ - return "" + l = [] + for i in range(100): + if i % 2 == 0: + l.append ("Fizz") + elif i % 3 == 0: + l.append ("Buzz") + else: + l.append(str(i)) + + return l