Use the module-import method and I need to change it from the from module import function method
Fantastic news! We've Found the answer you've been seeking!
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 *" 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))
Related Book For
Financial Accounting and Reporting a Global Perspective
ISBN: 978-1408076866
4th edition
Authors: Michel Lebas, Herve Stolowy, Yuan Ding
Posted Date: