+ 1

Store is closed

How can i code to have the output ("open")?

30th Dec 2020, 2:01 AM
Karim Digou
Karim Digou - avatar
6 Respuestas
+ 5
hour = int(input()) day = int(input()) # your code goes here if (hour > 10 and hour < 21) and day < 6: print("Open") else: print("Close") If this is still wrong, please send the challenge details. If you need explanation feel free to ask. Thanks!
30th Dec 2020, 2:11 AM
noteve
noteve - avatar
+ 5
This my solution: hour = int(input()) day = int(input()) if (10 <= hour < 21) and (1 <= day <= 5): print(“Open”) else: print(“Closed”) Pls upvote and try this. Thanks!
16th May 2021, 10:36 AM
Samuel Mbah
Samuel Mbah - avatar
+ 2
The problem is solved thank you, in the syntax i just have to do the >= and <=
30th Dec 2020, 2:17 AM
Karim Digou
Karim Digou - avatar
+ 1
hour = int(input()) day = int(input()) # your code goes here If (10 < hour < 21) and day < 6: Print("Open")
30th Dec 2020, 2:01 AM
Karim Digou
Karim Digou - avatar
+ 1
Thanks for that all !
7th Dec 2021, 3:37 AM
Abhishek Gosavi
Abhishek Gosavi - avatar
0
hour = int(input()) day = int(input()) if day < 6 and hour >=21 : print("Open") else : print("Closed") try this it works!
10th May 2021, 10:42 AM
Abigith Boovaragavan
Abigith Boovaragavan - avatar