I'm literally two days into the learning journey so go easy! I'm trying to put together a basic temperature app and everything runs great without errors except when I input single digits. If I input double digits, it correctly registers the right response, as in: "yes, that's too hot" or "yes, that's too cold" but it seems to recognize anything lower than 10 as being greater than 32 and not lower than 27 thus giving a "too warm" response.`
temperature = range(-30,55)
temperature = input("What is the temperature in Celcius? ")
print("Temperature: " + str(temperature) + " degrees Celcius")
if temperature < str(27):
    print ("Plant is too cold")
if temperature < str(27):
    sum = 27 - int(temperature)
    print("Recommended temperature increase:" + str(sum) + " degrees Celcius")
    print("Remember to keep your plant between 27 and 32 degrees!")
elif temperature > str(32):
    print ("Plant is too warm")
if temperature > str(32):
    sum = int(temperature) - 32
    print("Recommended temperature decrease:" + str(sum) + " degrees Celcius")
    print("Remember to keep your plant between 27 and 32 degrees!")
elif temperature > str(27) and temperature < str(32):
    print ("Plant temperature is nominal")
 
     
     
    