Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #/home/clockworkpcasus/Documents/bin/sandwich.py
- # Released under a GPLv3 Licence by Clockwork PC 2011
- #
- # www.clockworkpc.com.au
- #
- # You are entitled to the following four freedoms:
- # Freedom 0: To run this program for any purpose
- # Freedom 1: To study how this program works and change it to make it do what you wish
- # Freedom 2: To redistribute copies so you can help your neighbour
- # Freedom 3: To distribute copies of your modified version to others
- import os
- running = True
- while running:
- answer = raw_input("""
- What do you want?
- """)
- os.system("clear")
- if "sudo" in answer:
- if "make" in answer:
- if "sandwich" in answer:
- running = False
- else:
- print "Sorry, this is a sandwich-only joke."
- elif "Sudo" in answer:
- if "make" in answer:
- running = False
- elif "make" in answer:
- print "Make it yourself!"
- elif "Make" in answer:
- print "Make it yourself!"
- else:
- print "Bugger off, mate."
- print "OK."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement