Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
|
|
@ -1,3 +1,7 @@
|
|||
for i in range(1, 101):
|
||||
words = [word for n, word in ((3, 'Fizz'), (5, 'Buzz')) if not i % n]
|
||||
print ''.join(words) or i
|
||||
for n in range(1,101):
|
||||
msg = ""
|
||||
if not (n%3):
|
||||
msg += "Fizz"
|
||||
if not (n%5):
|
||||
msg += "Buzz"
|
||||
print msg or str(n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue