Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. def fizzbuzz(num):
  2. res = ""
  3. fiz = "Fizz"
  4. buz = "Buzz"
  5. if (num % 3) == 0:
  6. res = fiz
  7. if (num % 5) == 0:
  8. res = res + buz
  9. return res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement