Question
3) Write a module named cel_fah.py that contains the following two functions: def celsiusToFahrenheit(celsius): # Converts from Celsius to Fahrenheit def fahrenheitToCelsius(fahrenheit): # Converts from
3) Write a module named cel_fah.py that contains the following two functions: def celsiusToFahrenheit(celsius): # Converts from Celsius to Fahrenheit def fahrenheitToCelsius(fahrenheit): # Converts from Fahrenheit to Celsius The formulas for the conversion are: celsius = (5 / 9) * (fahrenheit 32) fahrenheit = (9 / 5) * celsius + 32 Write a test program that takes one value in Celsius and one value in Fahrenheit then prints the corresponding Fahrenheit and Celsius values, respectively, by invoking these functions available under cel_fah.py modules.
(You will write a comment for your each line of code and of course it will be in English. )
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started