Solid, Liquid, Gas

Water is 'solid' at temperatures below 0 degrees Celsius, 'liquid' at temperatures from 0 degrees Celsius to 100 degrees Celsius, and a 'gas' at temperatures above 100 degrees Celsius.

Write a function state_of_H2O() that takes a temperature in degrees Celsius as a parameter, and returns the state of matter (the word solid, liquid, or gas) for water at that temperature.

Write a program solid_liquid_gas.py that has the user enter a temperature in degrees Celsius, sends that information to the function, and prints out the result sent back by the function.

Technical note: At 0 degrees Celsius, H2O exists in both solid and liquid form, and at 100 degrees Celsius, H2O exists in both liquid and gas form. For this program, however, your function can indicate either solid or liquid for H2O at 0 degrees, and either liquid or gas for H2O at 100 degrees.

Sample interactions:

What temperature is your water (in degrees Celsius)? 117
gas

What temperature is your water (in degrees Celsius)? -17.3
solid