There are two python files namely script_a.py and script_b.py I have to pass input from script_a.py to script_b.py function and that script_b.py function should be called inside script_a.py
script_a.py
from script_b import maximum
input1=5
input2=6
def script_a(input1,input2):
input1,input2=input2,input1
return input1,input2
print(script_a(input1,input2))
maximum(input1,input2)
script_b.py
import script_a
def maximum(a, b):
if a >= b:
return a
else:
return b
a = script_a.input1
b = script_a.input2
print(maximum)
when I execute script_a.py I have to get answer for maximum function also