Guest User

Untitled

a guest
Sep 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # SCREW YOU CONDITIONALS
  2. def fizzbuzz(n):
  3. fizzes = [1, 0, 0]
  4. buzzes = [2, 0, 0, 0, 0]
  5. words = [None, "Fizz", "Buzz", "FizzBuzz"]
  6.  
  7. for i in range(1, n):
  8. words[0] = i
  9. print(words[fizzes[i%3] + buzzes[i%5]])
  10.  
  11. fizzbuzz(20)
Add Comment
Please, Sign In to add comment