Skip to content

Instantly share code, notes, and snippets.

@Visgean
Created February 28, 2010 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Visgean/317927 to your computer and use it in GitHub Desktop.
Save Visgean/317927 to your computer and use it in GitHub Desktop.
#! /usr/bin/python
# -*- coding: UTF-8 -*-
# Deda vseveda by Visgean Skeloru <visgean (at) gmail.com>
# To run this script you have to EAT A CAT and force somebody to COMMIT A SUCIUDE!
from random import choice
from sys import argv
#answers = ["Ano.", "Ne."]
answers = ['\033[1;32mAno.\033[1;m', '\033[1;31mNe.\033[1;m']
if len(argv) > 1:
print "\033[1;35m%s\033[1;m" % " ".join(argv[1:])
print choice(answers)
else:
while True:
question = raw_input("Otázku prosím: %s" % "\033[1;35m")
print "\033[1;m", # decolorize font
if len(question) > 0:
print choice(answers)
else:
print "Tak zase někdy..."
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment