SHARE
TWEET

Untitled

a guest Jun 26th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def fb(n):
  2.     ret = 'Fizz' if n % 3 == 0 else ''
  3.     ret += 'Buzz' if n % 5 == 0 else ''
  4.     return ret
  5.  
  6. i = 1
  7. while i <= 20:
  8.     print(i, fb(i))
  9.     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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top