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.
w = int(input('Enter weight: '))
if w > 80:
print('Heavy weight')
elif 60 <= w <= 80:
print('Medium weight')
elif w < 60:
print('Light weight')
Comments
Leave a comment