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')
Asked
Active
Viewed 20 times
-3
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