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

Popular posts from this blog

JupyterLab / Jupyter notebook important settings to make work flow easy

when you first start using Jupyter notebook you feel it difficult in comparison to VS code. but believe me it's not that hard. Today i'm going to show you that how can you make your coding experience batter on jupyter without any extension  1) go to settings and click auto close brackets it will automatically close (), '',""