I am not sure how to word this question. If I am defining function() to be a user input prompt, does the
name_of_prompt = raw_input("")
name of prompt equal the name of fucntion or could it be
prompt_funct1? If so, when using if...elif statements to call on other functions providing prompt_funct1 == something specific, how do I do that. This is my understanding of the area...
def function(): print '''The user inputs their favourite colour, and depending on their input, a different function is called.''' print prompt_funct1() def prompt_funct1(): prompt_f1 = raw_input("What is your favourite colour? ").lower() try: if prompt_f1 == "blue" or prompt_f1 == "light blue": explain() else: print '''Just type in 'blue' so this goes smoother! ''' except: pass def explain(): print '''Can I call function prompt_funct1()'s raw input as prompt_funct1 = raw_input("What is your favourite colour") or will it cause confusion when python runs it. Basically, when the user inputs blue or light blue as their favourite colour, will it run function explain()? I hope this makes sense, I confused myself horribly trying to figure out a way to simplify this whole process and code it more professionally, I feel that my code looks sloppy. But in the process of trying to explain my question, my whole mind went numb and dumb, leaving me now very confused as to what I was trying to do in the first place. If any of you can decipher this and/or help me figure this out, please and thank you very much. ''' print raw_input("press enter to give me my brain back")