I'm having a simple problem but I just can't see where the issue is. I'm simply trying to validate input with an if statement, however for some reason I can't see the test fails. Yes, just a beginner, and I'm sure I'm missing something obvious. I've tried cleaning up the input with strip etc but I've exhausted everything I can think of. Any help will be greatly appreciated.
print("Convert your weight")
while (True):
try:
raw = float(input("What is your weight?: "))
except ValueError:
print("You must enter a number")
else:
break
while (True):
try:
unit = str.lower(input("Is that pounds'(L)', or kilos'(K)'?: "))
except:
print("It must be a letter")
else:
if unit!= "l" or "k":
print("Unit: " + unit)
print("You can only input L or K")
else:
print("Time to send a break")
break
print ("raw: " + str(raw) + " : " + "unit: " + str(unit))