0
Boolean Logic: What could be the Incorrect Test case in this Task?
Task: https://www.sololearn.com/learning/1073 Name: Boolean Logic, Python Core Exercise: 21.3 Practice Code: -------------------------------------------------------------------- Opening_Hours = int(input()) Opening_Days = input() Monday = 1 Tuesday = 2 Wednesday = 3 Thursday = 4 Friday = 5 Saturday = 6 Sunday = 7 if (Opening_Hours >= 10 and Opening_Hours <= 21): print ("Open") if (not Opening_Days == 6 and Opening_Days == 7 ): print ("Open") else: print("Closed") ---------------------------------------------------------------------- All other Test Cases run in the Task, except for Test Case 4, so why. What could be wrong with the code?
3 Réponses
+ 6
Kizito Onyema ,
please mention the correct tutorial name and also the lesson / exercise number.
thanks!
+ 6
Kizito Onyema ,
see my comments in the code file:
https://code.sololearn.com/cf7zRsdH8MpT/?ref=app
0
@Lothar I've done that