Guest User

Untitled

a guest
Jul 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. """
  2. print 1-100
  3. if divisible by 3, replace with fizz
  4. if divisible by 5, replace with buzz
  5. """
  6. for x in range(1,100):
  7. if x % 3 == 0:
  8. print("fizz")
  9. elif x % 5 == 0:
  10. print("buzz")
  11. else:
  12. print(x)
Add Comment
Please, Sign In to add comment