Jul-24-2018, 07:05 AM
Hello all,
I am a beginner to python.
I am unable to transfer the value of variables() to dispense. I was instructed to put value into the bracket function of dispense() .
My codes are below. Any help would be appreciated.
I am a beginner to python.
I am unable to transfer the value of variables() to dispense. I was instructed to put value into the bracket function of dispense() .
My codes are below. Any help would be appreciated.
def variables(): solution = input("Please choose Solution") t= input("time taken") def dispense(solution, t): if solution == 1: print("solution",solution,"time taken:", t) elif solution == 2: print("solution",solution,"time taken",t) else: print("other solution") variables() dispense(solution,t)