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?

https://code.sololearn.com/c6s0mG1AAVIi/?ref=app

14th Sep 2020, 12:21 AM
Sean Santhosh
Sean Santhosh - avatar
4 Antworten
+ 1
What is the input that you are providing ?
14th Sep 2020, 12:41 AM
Arsenic
Arsenic - avatar
+ 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.....
14th Sep 2020, 1:13 AM
Sean Santhosh
Sean Santhosh - avatar
+ 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
14th Sep 2020, 3:03 AM
Arsenic
Arsenic - avatar
+ 1
Thank you so much arsenic!!! Thank you so much!
14th Sep 2020, 3:05 AM
Sean Santhosh
Sean Santhosh - avatar