i am a bit stuck on this, i need to call the first 2 functions for the output in the 3rd one. The user has to should be able to continue until they want to stop converting and they should be asked on which way the conversion is to be performed?
def fahrenheit2Celsius(fahrenheit):
return (fahrenheit - 32) * 5.0 / 9.0
def celsius2Fahrenheit(celsius):
return 9.0 / 5.0 * celsius + 32
def fahrenheit2celsius():
temeperature= input("please enter the temperature to convert: ")
fahrenheitorcelsius=input("1=farenheit/2=celsius")
if fahrenheitorcelsius==1:
fahrenheit2Celsius(fahrenheit)
elif fahrenheitorcelsius==2
celsius2Fahrenheit(celsius)