The formula used to convert between Fahrenheit and Celsius is °C = 5/9(°F - 32). The temperature in Fahrenheit can be readily converted to Celsius using the Fahrenheit to Celsius method (F to C formula).
This math tells us that 37.78 degrees Celsius is equal to 100 degrees Fahrenheit.
temp = input("Input the temperature you like to convert? (e.g., 45F, 102C etc.) : ")
degree = int(temp[:-1])
i_convention = temp[-1]
if i_convention.upper() == "C":
result = int(round((9 * degree) / 5 + 32))
o_convention = "Fahrenheit"
elif i_convention.upper() == "F":
result = int(round((degree - 32) * 5 / 9))
o_convention = "Celsius"
else:
print("Input proper convention.")
quit()
print("The temperature in", o_convention, "is", result, "degrees.")
Learn more about method here-
brainly.com/question/18088056
#SPJ4