Created
February 28, 2010 23:43
-
-
Save Visgean/317927 to your computer and use it in GitHub Desktop.
This file contains 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
#! /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