Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def bottles_on_wall(bottles):
- if bottles > 0:
- print "%s bottles of pop on the wall" % bottles
- time.sleep(1)
- print "%s bottles of pop" % bottles
- time.sleep(1)
- print "If one of those bottles should happen to fall,"
- time.sleep(3)
- bottles = bottles - 1
- print "%s bottles of pop on the wall. \n" % bottles
- time.sleep(1)
- bottles_on_wall(bottles)
- elif bottles == 0:
- print "And now we're all drunk on pop."
- return
- bottles_on_wall(99)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement