# Report the state of some gold based on a temperature entered by # the user. # Read a temperature from the user temp = float(input("Enter the temperature of some gold: ")) # Determine the state of the gold from the entered temperature if temp < 1064: state = "solid" if temp >= 1064 and temp < 2807: state = "liquid" if temp >= 2807: state = "gas" # Report the result to the user print("At", temp, "degrees, gold is a", state)