Using the knowledge in computational language in python it is possible to write a code that convert temperatures to and from celsius, fahrenheit.
<h3>Writting the code:</h3>
<em>temp = input("Input the temperature you like to convert? (e.g., 45F, 102C etc.) : ")</em>
<em>degree = int(temp[:-1])</em>
<em>i_convention = temp[-1]</em>
<em />
<em>if i_convention.upper() == "C":</em>
<em> result = int(round((9 * degree) / 5 + 32))</em>
<em> o_convention = "Fahrenheit"</em>
<em>elif i_convention.upper() == "F":</em>
<em> result = int(round((degree - 32) * 5 / 9))</em>
<em> o_convention = "Celsius"</em>
<em>else:</em>
<em> print("Input proper convention.")</em>
<em> quit()</em>
<em>print("The temperature in", o_convention, "is", result, "degrees.")</em>
See more about python at brainly.com/question/18502436
#SPJ1