Question: Use the module-import method and I need to change it from the from module import function method to the import module method also import *
Use the module-import method and I need to change it from the "from module import function" method to the "import module" method also "import *" method and make sure it shows the correct output.
def Calculate(div, g, r):
C = (div*(1+g)/(r-g))
return C
from CalculateModule import Calculate
print(Calculate(3.24, 54, 0))
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
To change your code from the from module import function method to the ... View full answer
Get step-by-step solutions from verified subject matter experts
