import Functions_Temparature_toC_toF as temp # from Functions_Temparature_toC_toF import toFahrenheit, toCelsius # Challenge: re-write the above functions into lambda functions ... print(77, 'degree F = ', temp.toCelsius(77), 'degree C') print("") print(25, 'degree C = ', temp.toFahrenheit(25), 'degree F') print("") print('round-trip conversion for F=77 produces F=', temp.toFahrenheit( temp.toCelsius(77) )) print('round-trip conversion for C=25 produces C=', temp.toCelsius( temp.toFahrenheit(25) )) print("") # Every 10 (5) deg C change makes 18 (9) deg F change print('deltaC==10 <=> deltaF==18') for c in range(0,100+1,10): print('%3d degree C = %5.1f degree F' % (c, temp.toFahrenheit(c))) print("") print('deltaF==9 <=> deltaC==5') # Every 18 (9) deg F change makes 10 (5) deg C change for f in range(32,212+1,9): print('%3d degree F = %5.1f degree C' % (f, temp.toCelsius(f))) print("")