Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fizzbuzz(num):
- res = ""
- fiz = "Fizz"
- buz = "Buzz"
- if (num % 3) == 0:
- res = fiz
- if (num % 5) == 0:
- res = res + buz
- return res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement