Answer:
import math
C_or_F = input("Enter C for Celcius or F for Farenheit: ")
if C_or_F == 'F':
F = int(input("Enter degrees in Fahrenheit: "))
Fahrenheit =(F-32)*(5/9)
print(Fahrenheit,"°")
if C_or_F == 'C':
C = int(input("Enter degrees in Celcius: "))
Celcius = (C*(9/5))+32
print (Celcius,"°")
Step-by-step explanation:
The first input determines if it is Fahrenheit or Celcius. The second inputs determine how many degrees in that unit of temperature.