Skip to content

Instantly share code, notes, and snippets.

@ArthurDeveloper
Created August 16, 2021 16:36
Show Gist options
  • Save ArthurDeveloper/a59b17ab57c95dae420a2d3f6c2f5355 to your computer and use it in GitHub Desktop.
Save ArthurDeveloper/a59b17ab57c95dae420a2d3f6c2f5355 to your computer and use it in GitHub Desktop.
FizzBuzz in python
def fizzbuzz(firstNumber, lastNumber):
for number in range(firstNumber, lastNumber+1):
if number % 3 == 0 and number % 5 == 0:
print("FizzBuzz")
elif number % 3 == 0:
print("Fizz")
elif number % 5 == 0:
print("Buzz")
fizzbuzz(1, 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment