Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- feet = input("Enter the height in feet: ")
- if feet == "":
- exit()
- feet = int(feet)
- inch = input("Enter the height in inch: ")
- if inch == "":
- exit()
- inch = int(inch)
- total = (feet*12) + inch
- if total >= 96:
- print("The person is really tall!")
- totalcm = total*2.54
- m_and_cm = round(totalcm/100,2)
- print(f'{feet} feets {inch} inches are equivalent to {m_and_cm} meters')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement