Write a Python program to enter temperature in Celsius and convert it into Fahrenheit and Vice Versa.
SOLUTION....
# Fahrenheit to Celsius fahrenheit = float(input("Enter temperature in Fahrenheit: ")) celsius = (fahrenheit - 32) * 5/9 print(f"{fahrenheit}°F = {celsius:.2f}°C") # Celsius to Fahrenheit celsius = float(input("\nEnter temperature in Celsius: ")) fahrenheit = (celsius * 9/5) + 32 print(f"{celsius}°C = {fahrenheit:.2f}°F")
OUTPUT
