Answer to Question #243366 in Python for Sho

Question #243366

Write a program that asks the user for their name and their height in inches ("Enter your name: ", "Enter your height in inches: "). The program should display the person's name and whether they are short, average, or tall. Short is less than 60 inches and tall is greater than 72 inches in between is average height. Display the output in the following format as an example: (Joe, " your height is short")


1
Expert's answer
2021-09-28T00:49:20-0400
name = input("Enter your name: ")
height = int(input("Enter your height in inches: "))
if height < 60:
    print( name + ", 'your height is short ")
elif height > 72:
    print(name + ", 'your height is tall ")
else:
    print(name + ", 'your height is average ")

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