Guest User

Untitled

a guest
Feb 28th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def fizz_buz():
  2. for x in range(1, 101):
  3. if x % 2 == 0: print 'fizz'
  4. if x % 5 == 0: print 'buzz'
  5. if x % 10 == 0: print 'fizzbuzz'
Advertisement
Add Comment
Please, Sign In to add comment