Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- print 1-100
- if divisible by 3, replace with fizz
- if divisible by 5, replace with buzz
- """
- for x in range(1,100):
- if x % 3 == 0:
- print("fizz")
- elif x % 5 == 0:
- print("buzz")
- else:
- print(x)
Add Comment
Please, Sign In to add comment