SHARE
TWEET

Untitled

a guest Jun 26th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top