+ 1
Store is closed
How can i code to have the output ("open")?
6 Antworten
+ 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!
+ 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!
+ 2
The problem is solved thank you, in the syntax i just have to do the >= and <=
+ 1
hour = int(input())
day = int(input())
# your code goes here
If (10 < hour < 21) and day < 6:
Print("Open")
+ 1
Thanks for that all !
0
hour = int(input())
day = int(input())
if day < 6 and hour >=21 :
print("Open")
else :
print("Closed")
try this it works!