Guest User

Untitled

a guest
Oct 16th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1.     possibles = {3: 'Fizz', 5: 'Buzz'}
  2.     response = ''
  3.  
  4.     if n != 0:
  5.         for divisor in possibles:
  6.             if n % divisor == 0:
  7.                 response += possibles[divisor]
  8.  
  9.     if response == '':
  10.         response = n
  11.  
  12.     print response
Add Comment
Please, Sign In to add comment