Question: Which among the following python code snippets can be used to divide the citizens of a country into three groups based on their age? The

Which among the following python code snippets can be used to divide the citizens of a country into three groups based on their age?
The rules to divide the citizens into group 1, group 2, and group 3 are -
Group 1: Age <18, Minors who are not eligible to work
Group 2: 18<= Age <=60, Eligible to work
Group 3: Age >60, Too old to work as per govt. regulations

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!