temperature conversion

a=input( ' 1. Celsius to Fahrenheit 2. Fahrenheit to Celsius ' )
 if a== ' 1 ' :

    c =input( ' Please enter the temperature in Celsius: ' )
    f =float(c)*9/5+32
     print ( ' {}Celsius to Fahrenheit is {} ' .format(c,f))
 else :
    c =input( ' Please enter the temperature in Celsius: ' )
    f =float(c)*9/5+32
     print ( ' {}Celsius to Fahrenheit is {} ' .format(c,f))

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324857809&siteId=291194637