# Report the state of matter of gold at a temperature entered by the user GOLD_MP = 1064.43 # The melting point GOLD_BP = 2807.00 # The boiling point # Read the temperature from the user temp = float(input("Enter the temperature of some gold in degrees C: ")) # If the temperature is less than GOLD_MP (the melting point) if temp < GOLD_MP: # The state of the gold is solid state = "solid" # If the temperature is between the melting point and the boiling point if temp > GOLD_MP and temp < GOLD_BP: # The state of the gold is liquid state = "liquid" # If the temperature is greater than the boiling point if temp > GOLD_BP: # The state of the gold is gas state = "gas" # Report the state to the user print("At", temp, "degrees, gold is a", state)