a = int(input( ' To convert from Celsius to Fahrenheit please press 1\nTo convert from Fahrenheit to Celsius please press 2\n ' )) if a== ' 1 ' : c = float(input( ' Please enter the temperature in Celsius: ' )) f = c*9/5+32 print ( ' Celsius {:.2f} is Fahrenheit {:.2f} ' .format(c,f)) else : f = float(input( ' Please enter the temperature in Fahrenheit: ' )) print ( ' Fahrenheit {:.2f} in Celsius is {:.2f} ' .format(f,c))