daily pastebin goal
45%
SHARE
TWEET

Python FizzBuzz

jessicakennedy1028 Sep 9th, 2018 (edited) 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print ('\n'.join(['FizzBuzz' if not(i%3 or i%5) else 'Fizz' if not i%3 else 'Buzz' if not i%5 else str(i) for i in range(1, 100)]))
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