Python – Decision generator

[code]
#!/usr/bin/python
# Kenneth Holmqvist 2014
# kholmqvist88@gmail.com
# Hvad siger Kenneth
# Version 0.1
##########################
import random, time

class magickanswer:
def magic(self):
number = random.randrange(0,3,1);
return number;

def answer():
generate = magickanswer();
n = generate.magic();
options = [“Yes”,”No”,”Maybe”];
print “Kenneth says: %s” % options[n];

count = 0;
while count < 3: answer(); time.sleep(1); count = count+1; [/code]


Kenneth Holmqvist