+ 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 RĂ©ponses
+ 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!