Healthy sleep

Report a typo

Ann learned from a health TV program that it's ideal to sleep a minimum of A hours daily but not to exceed B hours. Ann currently sleeps for H hours each day and wants to know, whether her sleep schedule is healthy. Your program should receive 3 numbers in the following order: A, B, H, where A is always less than or equal to B. If Ann follows the program's recommendations, print "Normal". If she sleeps less than A hours, output "Deficiency", and if she sleeps more than B hours, output "Excess". Ensure the output exactly matches the specified cases ("Deficiency," "Excess," "Normal"). Pay attention to strict conditional operators: < \lt and \le , > \gt and \ge . Think carefully about all the conditions which you need to use.

Sample Input 1:

6
10
8

Sample Output 1:

Normal

Sample Input 2:

7
9
10

Sample Output 2:

Excess

Sample Input 3:

7
9
2

Sample Output 3:

Deficiency
Write a program in Python 3





___

Create a free account to access the full topic