Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def fb(n):
  2. m = ''
  3. if (n % 3) == 0:
  4. m = 'Fizz'
  5. if (n % 5) == 0:
  6. m = m + 'Buzz'
  7. return m
  8.  
  9.  
  10. i = 1
  11. while i <= 20:
  12. print(i, fb(i))
  13. i = i +1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement