Understanding Data Types and Math: Summation, Temperature Conversion 1

a=input('Please enter the temperature in Fahrenheit')

sum2=int(a)*5/9-32
print('The converted Celsius temperature is;{}'.format(sum2))

  



a=input( ' Please enter the temperature in Celsius ' )

sum2 =int(a)*5/9+32
 print ( ' The converted Fahrenheit temperature is ;{} ' .format(sum2))

 






a = input( ' Please enter a number; ' ) b = input( ' Please enter a number; ' ) sum2 =int(a)+ int(b) print ( ' The sum of two numbers{} ' .format(sum2 ))

Guess you like

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