Skip to content

Instantly share code, notes, and snippets.

@JosiasAurel
Created September 5, 2020 18:22
Show Gist options
  • Select an option

  • Save JosiasAurel/4710139928a41fe70c58c042572b53a8 to your computer and use it in GitHub Desktop.

Select an option

Save JosiasAurel/4710139928a41fe70c58c042572b53a8 to your computer and use it in GitHub Desktop.
numbers = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
for num in numbers:
if num % 15 == 0:
print("Fizz Buzz")
elif num % 3 == 0:
print("Fizz")
elif num % 5 == 0:
print("Buzz")
else:
print(num)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment