2. Create module tempConverion.py as given in Fig. 9.3 in the chapter. If you invoke the module with two different types of import statements, how would the function call statement for imported module’s functions be affected ?
# tempconversion.py # Functions def to_centigrade(x): return 5*(x-32)/9.0 def to_fahrenheit(x): 9*x/5.0 + 32 # Constants FREEZING_C = 0.0 FREEZING_F = 32.0 ——————————————————————- # our program # if we import as following import tempconversion # then, our function calls would be as following a = tempconversion.to_centigrade(20) # if we import as following from tempconversion import to_centigrade […]