1#TemperatureConversions.py
2
3def main():
4 units = input("Which temperature you are using? (F for Fahrenheit, C for Celsius): ")
5 temp = eval(input("Please enter the temperature: "))
6 if (units == 'F'):
7 celcius = 5*(temp - 32)/9
8 print("The temperature is", celcius, "Celcius.")
9 else:
10 fahrenheit = 9*temp / 5+32
11 print("The temperature is", fahrenheit, "Fahrenheig")
12main()