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?

21st Dec 2021, 3:53 PM
Kizito Onyema
Kizito Onyema - avatar
3 Respostas
+ 6
Kizito Onyema , please mention the correct tutorial name and also the lesson / exercise number. thanks!
21st Dec 2021, 4:09 PM
Lothar
Lothar - avatar
21st Dec 2021, 5:58 PM
Lothar
Lothar - avatar
0
@Lothar I've done that
21st Dec 2021, 4:15 PM
Kizito Onyema
Kizito Onyema - avatar