· 8 years ago · May 20, 2018, 12:58 PM
1#! /usr/bin/python
2# -*- coding: UTF-8 -*-
3
4# Deda vseveda by Visgean Skeloru <visgean (at) gmail.com>
5# To run this script you have to EAT A CAT and force somebody to COMMIT A SUCIUDE!
6
7from random import choice
8from sys import argv
9
10
11#answers = ["Ano.", "Ne."]
12answers = ['\033[1;32mAno.\033[1;m', '\033[1;31mNe.\033[1;m']
13
14
15if len(argv) > 1:
16 print "\033[1;35m%s\033[1;m" % " ".join(argv[1:])
17 print choice(answers)
18else:
19 while True:
20 question = raw_input("Otázku prosÃm: %s" % "\033[1;35m")
21 print "\033[1;m", # decolorize font
22
23 if len(question) > 0:
24 print choice(answers)
25 else:
26 print "Tak zase někdy..."
27 break