# # 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 the state to solid when the temperature is less than the melting point, # liquid if it's at or above the melting point but less than the boiling point, # and gas if it's at or above the boiling point. if temp < 1064: state = "solid" elif temp < 2856: state = "liquid" else: state = "gas" # Report the result. print(f"At {temp} degrees C, gold is a {state}.")