Skip to content

Instantly share code, notes, and snippets.

@jimfilippou
Created October 8, 2017 14:21
Show Gist options
  • Save jimfilippou/187f0c29e7156ae451f10ef5d726764a to your computer and use it in GitHub Desktop.
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
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