WAP in PYTHON to
enter ages of 5 employee and count the number of persons in each of the following age groups:
a) 15-20
b)20-25
c)25-30
Answers
Answered by
0
Answer:
Place u r question fully I think u r not showing the graph
Answered by
1
Answer:
Hey! Here is your python code...
x = int(input("How many employees? "))
for i in range(x):
age = int(input("Enter age: "))
if age>=15 and age<=20:
print("Age falls between 12-15")
elif age>=20 and age<=25:
print("Age falls between 20-25")
elif age>=25 and age<=30:
print("Age falls between 25-30")
else:
print('Age is greater than 30')
# HOPE THIS HELPS!!
Similar questions