+ 1

Why is the function not launching when user types in either pizza or taco?

def taco(): print("taco") def pizza(): print("pizza") choice= input("taco or pizza") if choice =="taco": taco() elif choice =="pizza": pizza() else: print("fail")

15th Nov 2016, 11:38 PM
James Schultz
James Schultz - avatar
6 Réponses
+ 2
What is your input/output?
16th Nov 2016, 3:03 AM
Keto Z
Keto Z - avatar
0
I copied it but it still executes the fail.
18th Nov 2016, 1:28 AM
James Schultz
James Schultz - avatar
0
actual python
18th Nov 2016, 1:35 AM
James Schultz
James Schultz - avatar
0
how different is cpython and qpython I can't find an app for cpython
18th Nov 2016, 1:47 AM
James Schultz
James Schultz - avatar
0
so why doesn't the same thing work on both
18th Nov 2016, 2:01 AM
James Schultz
James Schultz - avatar
0
now it's just giving me an error after I copied your new edit it's supposed to be simple to make sure the functions are working it's becoming more complicated than it should be
18th Nov 2016, 2:20 AM
James Schultz
James Schultz - avatar