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