Software Lab Using Python
Software Lab Using Python
-1
Write a menu driven program to convert the given temperature from fahrenheit to celcius
and vice versa depending upon user's choice.
def fahrenheit_to_celsius(fahrenheit):
def celsius_to_fahrenheit(celsius):
def main():
while True:
print("3. Exit")
if choice == '1':
break
else:
if __name__ == "__main__":
main()
Output:
2. Celsius to Fahrenheit
3. Exit