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


# 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
# then we can directly use the function imported without the prefix
a = to_centigrade(20)