0

Why won’t this work

I’m quite new to python and I can figure out why this program won’t work. https://code.sololearn.com/ci5NcvoF6pEn/?ref=app

2nd Jan 2019, 11:31 PM
FlamingSquid
FlamingSquid - avatar
1 Answer
+ 2
Hello FlamingSquid, I believe what you are trying to do is: x = input("Choose Y or N:") if x=="Y" or x == "y": print(1) elif x=="N" or x == "n": print(2) else: print("Error")
2nd Jan 2019, 11:35 PM
Ulisses Cruz
Ulisses Cruz - avatar