Skip to main content

weight converter KG - LBS

 


weight = int(input('weight: '))

unit = input ("(L)bs or (K)g: ")

if unit.upper() == "L":

    converted = weight * 0.45

    print(f"you are {converted} killos")

else:

    converted = weight / 0.45

    print(f"you are {converted} pounds")

Comments