Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
Help this newbie please!
I tried to change the 9th line like if y==āNoā or ānoā : But it made all the following lines invalid for some reason. Could you explain what was wrong with this? https://code.sololearn.com/c736R3djX4p3/?ref=app
3 Respostas
+ 4
hi, you can do several things to get this code run properly.
if y == āNoā or y == ānoā
this would cover only 2 different spellings but not āNOā. So an other approach is recommended:
if upper(y) == āNOā
this covers all variations of spelling.
+ 1
Thank you! problem solved!