Question #271816

Write a program to classify athletes into three classes by weight. The categories are: over 80kg → heavy weight, between 60 and 80 kg → medium weight, less than 60kg → light weight.


Expert's answer

w = int(input('Enter weight: '))
if w > 80:
	print('Heavy weight')
elif 60 <= w <= 80:
	print('Medium weight')
elif w < 60:
	print('Light weight')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS