Created
October 8, 2017 14:21
-
-
Save jimfilippou/187f0c29e7156ae451f10ef5d726764a to your computer and use it in GitHub Desktop.
No coins arround? figure out who is gonna sleep on the shitty bed at the hotel, using python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random, os | |
def main(): | |
while(True): | |
print "Press enter to choose who is gonna sleep on the shitty bed." | |
c = raw_input() | |
if c == ".exit": | |
break | |
else: | |
os.system("clear") | |
person = random.choice(['Manos', 'Nikiforos', 'Dinos', 'Dimitris']) | |
print("The person who is gonna sleep in ranch bed is %s" % person) | |
if __name__ == '__main__': | |
try: | |
main() | |
except KeyboardInterrupt: | |
os.system("clear") | |
print "\n Bye bye :D\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment