Advertisement
smithy1208

Untitled

Feb 19th, 2021
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. for i in range(1,101):
  2. out = ""
  3. if not i%3:
  4. out = "Fizz"
  5. if not i%5:
  6. out += "Buzz"
  7. if out:
  8. print(out)
  9. else:
  10. print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement