Hello everyone im curious to know why the code do it this way.
weight = float(input("Weight: "))
KorL = input("(K)gs or (L)bs: ")
if KorL == "K" or "k":
convert = weight // 2.2
print("Weight in Kg is: ", convert)
elif KorL == "L" or "l":
convert1 = weight * 2.2
print("Weight in Lbs is: ", convert1)
and show me this:
Weight: 45
(K)gs or (L)bs: l
Weight in Kg is: 20.0
When doing the "or" operation I expected to do it with "K" or "k"