Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- # times = sys.argv[1]
- times = 100
- foo = {
- 3: 'fizz',
- 5: 'buzz'
- }
- for i in range(times):
- out = ''
- for value, key in foo.items():
- if i % value == 0:
- out += key
- out = str(i) if out == '' else out
- print(out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement