Why wonā€™t this work | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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