Advertisement
biswasrohit20

hei

Mar 24th, 2021 (edited)
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. feet = input("Enter the height in feet: ")
  2. if feet == "":
  3. exit()
  4. feet = int(feet)
  5.  
  6. inch = input("Enter the height in inch: ")
  7. if inch == "":
  8. exit()
  9. inch = int(inch)
  10.  
  11. total = (feet*12) + inch
  12.  
  13. if total >= 96:
  14. print("The person is really tall!")
  15.  
  16. totalcm = total*2.54
  17. m_and_cm = round(totalcm/100,2)
  18. print(f'{feet} feets {inch} inches are equivalent to {m_and_cm} meters')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement