Guest User

Untitled

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