Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fizzbuzz(start=1, end=100, fizzval=3, buzzval=5):
- """Implements Reginald Braithwaite's FizzBuzz text."""
- for i in range(start, end+1):
- fizz = 'Fizz' if i % fizzval == 0 else ''
- buzz = 'Buzz' if i % buzzval == 0 else ''
- print i if fizz+buzz == '' else fizz+buzz
Add Comment
Please, Sign In to add comment