This is not working, Cant figure it out... i want it to print either error sentence or break.. I wanted to do it in a try/except, but that was not so good. And I'm new to python :-)
while True:
unitFrom = input("Enter unit of temperature, either Fahrenheit, Kelvin or Celsius:")
list = ["Fahrenheit" , "Celsius" , "Kelvin"]
if unitFrom.lower() in list:
break
else:
print ("Wrong unit, try again")
break