Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Written by: ETechSavvies [https://t.me/ETechSavvies] Apr 10,2021
- Description: Implements FizzBuzz algorithm
- Copyright 2021 @ETechSavvies
- """
- # Loop from 1 to 100
- for number in range(1, 101):
- if number % 3 == 0 and number % 5 == 0:
- print("FizzBuzz", end=" ")
- elif number % 3 == 0:
- print("Fizz", end=" ")
- elif number % 5 == 0:
- print("Buzz", end=" ")
- else:
- print(number, end=" ")
Add Comment
Please, Sign In to add comment