Menu

[Solved]Create Custom Python Module Named Tempconvertpy Module Must Contain Two Functions One Conv Q37234360

Create a custom Pythonmodule named tempconvert.py. This module mustcontain two functions: one that converts from Celsius to Fahrenheitand one that converts from Fahrenheit to Celsius. Write a programnamed program53.py , which has a main function,that imports the tempconvert module. The program should prompt theuser to specify the temperature and the scale, and then perform theappropriate conversion accurate to two decimal places.
SAMPLE OUTPUT 1
Enter the temperature to convert 37
Was that input Celsius or Fahrenheit?
Enter C or F C
In Fahrenheit, that is 98.60

SAMPLE OUTPUT2
Enter the temperature to convert -40
Was that input Celsius or Fahrenheit?
Enter C or F F
In Celsius, that is -40.00

Note:You will have two python files, progam53.py which has the main andthe print statements and tempconvert.py. which has the twofunctions. Use the import keyword to import tempconvert and to callthe functions, would betempconvert.functionname()

Expert Answer


Answer to Create a custom Python module named tempconvert.py. This module must contain two functions: one that converts from Celsi… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *