Question: Use Python In the Happy Valley School System, children are classified by age as follows: - less than 2 , ineligible - 2 , toddler

Use Python
In the Happy Valley School System, children are classified by age as follows: - less than 2 , ineligible - 2 , toddler - 3-5, early childhood - 6-7, young reader - 8-10, elementary - 11 and 12 , middle - 13, impossible - 14-16, high school - 1718, scholar - greater than 18, ineligible Given a variable age, write the necessary code to print out, on a line by itself, the appropriate label from the above list based on age. x5of5:2023-02-0515:15:44-W switch (age) case 1: System. out. prlnt ('ine1iefble?) case 2: Systeun out. print ( toddler) case 3: case 1 : Systen, out, print ("early childhood") case 6 : case 7: Systeu. out. irint (yunge reader ) cace 8 : case 9: case 10: Sjsten, out, print ("elementary) case 11: Case 12: Systen. out. print ( aiddle*) case 13: Syten. out. jint (inpossible ) case 14: case 15: case 16
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
