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

1 Expert Approved Answer
Step: 1 Unlock

To change your code from the from module import function method to the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!