So I was trying to make a weight converter application. It first asks the user their weight, and then asks if it is in Lbs or Kg and then it converts it to the other unit. For example, if someone entered their weight in Kg, it will convert it in Lbs. But the problem is, whenever I enter in pounds, its supposed to convert it to kg but it does not, and "converts" it to pounds, even though it is in pounds.
weight = int(input("Enter your weight: "))
user_choice = input ("(L)bs or (K)g: ")
if user_choice == "K" or "k":
converted = int(weight) * 2.2046
print (f"Your weight in pounds is {converted} lbs")
elif user_choice == "L" or "l":
converted = int(weight) / 2.2046
print (f"Your weight in kilograms is {converted} kg")
else:
print ("Please enter a valid option.")
I'm a beginner in python so any help will be appreciated.