''' Purpose: relate a cautionary tale -- make sure your expressions do what they are supposed to do ''' # get Celsius temperature c reply = input( 'Enter Celsius temperature: ' ) #ask for input c = int( reply ) #turn string into int print( ) # compute respectively, f1 and f2, the decimal and integer Fahrenheit equivalents of c f1 = ( 9 / 5 ) * c + 32 #decimal f2 = 9 * c // 5 + 32 #integer, Python follows PEDMAS #f2 = ( 9 // 5 ) * c + 32 ====> c + 32 # ( 9 // 5 ) = 1 # display results print( c, 'C =', f1, 'F' ) print( ) print( c, 'C =', f2, 'F' )