Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- legend = []
- sample = int(input())
- while sample:
- if sample == 0:
- break
- elif sample % 3 == 0:
- note = 'Fizz'
- if sample % 5 == 0:
- note = 'Fizz Buzz'
- legend.append(note)
- elif sample % 5 == 0:
- legend.append('Buzz')
- else:
- legend.append(sample)
- sample = int(input())
- for l in legend:
- print(l)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement