Skip to content
Snippets Groups Projects
Commit a5408822 authored by Fernando Gomez's avatar Fernando Gomez
Browse files

first try

parent af92152b
No related branches found
No related tags found
No related merge requests found
Pipeline #30216 failed
...@@ -5,5 +5,14 @@ def fizzbuzz(n:int) -> str: ...@@ -5,5 +5,14 @@ def fizzbuzz(n:int) -> str:
And for the multiples of five print "Buzz". And for the multiples of five print "Buzz".
For numbers which are multiples of both three and five print "FizzBuzz". 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment