-3
Weight = float(input('weight: '))
unit = input('''write "k" for kg, and "l" for lbs: ''')
if unit == "k" or "K":
    print(f' {Weight / 0.45}lbs')
elif unit == "l" or "L":
    print(f' {Weight * 0.45}kg')
else:
    print('please only write k or l')

so i am making a program that converts kg to lbs and vice versa depending on the input, but it won't execute the first two if statements, but only the last one

Jazin
  • 1
  • Does this answer your question? [How to test multiple variables for equality against a single value?](https://stackoverflow.com/questions/15112125/how-to-test-multiple-variables-for-equality-against-a-single-value) – ewong May 25 '22 at 07:12

0 Answers0