imtiazaasif

weight to lbs / kg

Apr 27th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. weight = int(input('weight :'))
  2. unit= input('(l)bs or (k)gs: ')
  3. if unit.upper() == "L" :
  4.     converted = weight * 0.45
  5.     print(f"you are {converted}")
  6. else:
  7.     converted = weight / 0.45
  8.     print(f"you are {converted} pounds")
Add Comment
Please, Sign In to add comment