''' 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: ' ) c = int( reply ) print( ) # compute respectively, f1 and f2, the decimal and integer Fahrenheit equivalents of c # Think about order of operations! (9/5)c + 32 # We do 9 * c and then divide by 5 and that can be an integer # or a decimal result but they should be close depending on WHERE # you put the division operand (/ or //) f1 = ( ( 9 / 5 )* c ) + 32 # f1 = ( 9 * c / 5 ) + 32 f2 = ( ( 9 // 5) * c ) + 32 f2_second = ( 9 * c // 5 ) + 32 # display results print( c, 'C =', f1, 'F' ) print( ) print( c, 'C =', f2, 'F' ) print( c, 'C = ', f2_second, "F")