human
Write me a code to convert a given temperature to another system based on given boiling and freezing points and the other steps required given the following:
Convert a given temperature to another system based on given boiling and freezing points | Function to return temperature in the second thermometer.
Calculate the temperature.
Driver Code"
Solution in Python:
assistant
#Here is code to convert a given temperature to another system based on given boiling and freezing points and the other steps required.
 def temp_convert ( F1 , B1 , F2 , B2 , T ) :
	t2 = F2 + ( ( float ) ( B2 - F2 ) / ( B1 - F1 ) * ( T - F1 ) )
	return t2
F1 = 0
B1 = 100
F2 = 32
B2 = 212
T = 37
print ( temp_convert ( F1 , B1 , F2 , B2 , T ) )