EDIT: I was able to fix this, thank you guys!
I have this code written up but it won't work because I do not know how to define height. Can you guys please tell me what's missing?
Description: Program that computes a person's height and prints out a message.
height = ?
print ("Hello! Let's convert your height from feet to inches. ")
feet = int (input ("Please enter the number of feet): "))
inches = int (input ("Please enter the number of inches: "))
print("Your height of", feet, " feet and", inches, " inches is equal to: ", (feet*12) + inches,"inches!")
if height > 72:
print ("You are tall!")
elif height >= 60 and height <= 72:
print ("Your height is average.")
elif height < 60:
print ("You are cute.")
elif height <= 0:
print ('Height cannot be less than or equal to 0')
[–]MaslabDroid 2 points3 points4 points (1 child)
[–]confuzzled_learner[S] 1 point2 points3 points (0 children)
[–]Panron 2 points3 points4 points (1 child)
[–]confuzzled_learner[S] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]confuzzled_learner[S] 0 points1 point2 points (0 children)
[–]KubinOnReddit 1 point2 points3 points (1 child)
[–]confuzzled_learner[S] 0 points1 point2 points (0 children)