# # 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. if temp < 1064: state = "solid" else: # The state is either liquid or gas. Figure out which one... if temp < 2856: # Set the state to liquid if it's less than the boiling point. state = "liquid" else: # Temperature must be greater than or equal to the boiling point, so set # the state to gas. state = "gas" # Report the result print(f"At {temp} degrees C, gold is a {state}.")