Answer to Question #271816 in Python for sukiiii

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.


1
Expert's answer
2021-11-26T17:44:18-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS