Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fizz_buzz():
- for num in range(1,101):
- if num % 5 == 0 and num % 3 == 0:
- print("FizzBuzz")
- elif num % 3 == 0:
- print("Fizz")
- elif num % 5 == 0:
- print("Buzz")
- else:
- print(num)
- fizz_buzz()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement