Advertisement
clockworkpc

Lindy Bomb Logic

May 13th, 2011
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. #!/usr/bin/python
  2. #/home/clockworkpcasus/Documents/bin/lindyBomb.py
  3.  
  4. # Released under a GPLv3 Licence by Clockwork PC 2011  
  5. #
  6. # www.clockworkpc.com.au
  7. #
  8. # You are entitled to the following four freedoms:
  9. # Freedom 0: To run this program for any purpose
  10. # Freedom 1: To study how this program works and change it to make it do what you wish
  11. # Freedom 2: To redistribute copies so you can help your neighbour
  12. # Freedom 3: To distribute copies of your modified version to others
  13.  
  14. import time
  15.  
  16. def lindyBomb():
  17.     print "Let's dance!"
  18.     time.sleep(180)
  19.  
  20. bandPlays = True
  21. while bandPlays:
  22.     x = raw_input("Swingable? ")
  23.     if "yes" in x.lower():
  24.         lindyBomb()
  25.     else:
  26.         time.sleep(180)
  27.  
  28. #This loop never ends :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement