# # Reports the state of matter for some gold based on the temperature entered # by the user. # # Read the temperature from the user. temp = float(input("Enter the temperature of some gold in degrees C: ")) # Set result to solid if the temperature is less than the melting point. if temp < 1064: state = "solid" # Set result to liquid if the temperature is between the melting point and the # boiling point. if temp >= 1064 and temp < 2856: state = "liquid" # Set result to gas if the temperature is above the boiling point. if temp >= 2856: state = "gas" # Report the result print(f"At {temp} degrees C, gold is a {state}.")