def setAlarm(time, day):
if day in range(1, 5) and 6 <= time < 22 or day == 5 and 6 <= time < 18 or day == 6 and 6 <= time < 14:
return False
else:
return True
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
def setAlarm(time, day):
if day in range(1, 5) and 6 <= time < 22 or day == 5 and 6 <= time < 18 or day == 6 and 6 <= time < 14:
return False
else:
return True