10 lines
262 B
Python
10 lines
262 B
Python
weight = float(input("Your weight: "))
|
|
unit = input("(K)g or (L)bs: ")
|
|
|
|
if unit.lower() == "l":
|
|
print("Weight in Kg: " + str(weight / 2.2))
|
|
elif unit.lower() == "k":
|
|
print("Weight in Lbs: " + str(weight * 2.2))
|
|
else:
|
|
print("Accepted values: [k, l]")
|