Good day, this is my first post here. I am aware that I am very noobish and it's my first day coding with Python, so if there's any other website for beginners like me that could give me a better advice, I am looking forward to hear it. But if it's not a problem, I would like to ask what is not correct with my code:
weight = int(input("Weight: "))
unit = input("(L)bs or (K)g?: ")
if unit.upper != 'L' or 'K':
print("Insert correct unit!")
elif unit.upper == 'L':
converted = weight * 0.45
print(f' Your weight is: {converted} kg')
elif unit.upper == 'K':
converted = weight / 0.45
print(f' Your weight is: {converted} lbs')
I rewrote my code in a few different ways, but still, it ends up returning print("Insert correct unit!") after using every single letter..
I know this code looks pretty basic, but the point for me is to understand why it doesn't work the way I wrote it. I would appreciate any kind of help.