def test1(weight): return weight * 0.45 print(test1()) def test2(weight): return weight/ 0.45 print(test2())
from mod1 import test1,test2 test1(200) test2(200)
C:\Users\user\AppData\Local\Programs\Python\Python38\python.exe C:/Python-Projects/Mydjangoproject/test.py Traceback (most recent call last): File "C:/Python-Projects/Mydjangoproject/test.py", line 1, in <module> from mod1 import test1,test2 File "C:\Python-Projects\Mydjangoproject\mod1.py", line 3, in <module> print(test1()) TypeError: test1() missing 1 required positional argument: 'weight' Process finished with exit code 1[code]
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.