Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
fizzbuzz generator
treyhunner
Dec 2nd, 2016
738
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
from
itertools
import
count
def
fizzbuzz
(
)
:
for
n
in
count
(
1
)
:
word
=
""
if
n %
3
==
0
:
word +
=
"Fizz"
if
n %
5
==
0
:
word +
=
"Buzz"
yield
(
word
if
word
else
n
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ I earned $19000 with this method
1 min ago | 0.29 KB
Crypto Exchange Profits
25 min ago | 0.29 KB
Free money using older build [1.3]
37 min ago | 0.29 KB
Changelly Exploit
CSS | 50 min ago | 0.29 KB
X Brave Filter
5 hours ago | 1.19 KB
S.S.S.S.S.S. - Super Special Sonic Server Sec...
6 hours ago | 0.18 KB
Untitled
1 day ago | 0.55 KB
bdfuebwi
2 days ago | 7.60 KB
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!