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")
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 ")
Comments
Leave a comment