Develop a program to classify students amongst various categories as per their age entered. Read age of N students and count no of students falling in each category as described below print a report as follow
Group A: 12 yrs and above but less than 15 yrs - XX
Group B: 15 yrs and above but less than 17 yrs - XX
Group C: 17 yrs and above but less than 19 yrs - XX
Group D: Lesser than 12 yrs - XX
Answers
Answered by
3
Answer:
from collections import Counter
classes = (
('V', 1),
('VI', 1),
('V', 2),
('VI', 2),
('VI', 3),
('VII', 1),
)
students = Counter(class_name for class_name, no_students in classes)
print(students)
Answered by
1
Answer:
¥ØỮŘ ΔŇŞŴ€Ř IN THE ATTACHMENT
н๏pε ¡т нεℓpε∂ ყ๏น
Attachments:
Similar questions