Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(1, 101):
- if (i % 3 == 0):
- print "FizzBuzz" if (i % 5 == 0) else "Fizz"
- else:
- print "Buzz" if (i % 5 == 0) else i
- for i in range(1,101):
- if not(i%3):
- print"FizzBuzz"if not(i%5)else"Fizz"
- else:
- print"Buzz"if not(i%5)else i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement