0
Can anyone tell me why it outputs the if statement that is true when we input Sunday into it even though we enter anything else?
4 Respostas
+ 1
What is the input that you are providing ?
+ 1
We should input when we will be coming.....
If it is Sunday it should be outputting that the shop will be closed on Sundays,
But whenever I enter anything else it outputs the shop opens only on Sundays which I don't want.....
+ 1
Techtify in your last *if* statement ( if day=='Sunday'or'sunday')
The second condition is not complete (it just says 'sunday' ) which will always equate to be true.
Just change it to day=='sunday' to get rid of it.👇
https://code.sololearn.com/cJ62KHpX0ozZ/?ref=app
+ 1
Thank you so much arsenic!!!
Thank you so much!