I'm studying python from scratch and I have a really trivial question. I want to write this program in which input my weight and the unit (Lbs or Kg) and then get the conversion:
weight = int(input("Weight: "))
unit = input("Lbs or Kg")
if unit.upper() == "L" or "l":
print(f"You are {weight / 2.2} kilos")
elif unit.upper() == "K":
print(f"You are {weight * 2.2} pounds")
else:
print("Unknown unit")
All is fine when I choose "L" as unit but when I type "K" the program divides instead of multiplying (like if I typed "L") and I don't get why. What's wrong in my code? Thank you for your help.