I have a little program written in Python. It is supposed to talk to you like Siri except command line based. It asks you how your day is and when you put good it is supposed to pick 1 out of 5 good responses and say that to you but I keep getting a recursion error here is my code
def nice5():
print ("Well Thats Good!")
time.sleep(2)
randsub(2)
def nice4():
print ("Great!")
time.sleep(2)
randsub()
def nice3():
print ("Thats Good!")
time.sleep(2)
randsub()
def nice2():
print ("Cool I am glad to hear that!")
time.sleep(2)
randsub()
def nice1():
print ("Thats Good! ")
time.sleep(2)
randsub()
def nicerand():
randnices = [nice1 , nice2 , nice3 , nice4 , nice5]
randnice = random.choice(randnices)
nicerand()
def p1checkChoice():
if choice == "Good":
nicerand()
if choice == "good":
nicerand()
if choice == "GOOD":
nicerand()
def greeting():
clearscr()
name = input("Hello What is your name: ")
clearscr()
print ("Hello " + name)
time.sleep(2)
clearscr()
print ("Allow me to introduce myself")
time.sleep(2)
clearscr()
print ("My name is Chatbot")
time.sleep(2)
clearscr()
choice = input("How has your day been: ")
global choice
p1checkChoice()
greeting()
RandnicesGlobal choicewith a capitalG? Please provide the exact source that you are using.