def getsomething1():
...
return firstarray
def getsomething2():
....
return secondarray
def getsomething3(firstarray, secondarray):
xlist = []
for i in firstarray:
i *= secondarray[0]
x = sin(i)
xlist.append(x)
print(xlist)
getsomething1()
getsomething2()
getsomething3(firstarray, secondarray)
firstarray = getsomething1()
secondarray = getsomething2()
getsomething3(firstarray, secondarray)
илиgetsomething3(getsomething1(), getsomething2())