def thrust_flow_function(M,r):
G = (1+r*math.pow(M,2))/(math.pow((1+(r-1)/2*math.pow(M,2)),(r/(r-1))))
dG = r*G*M*((2/(1+r*math.pow(M,2)))-(1/1+(r-1)/2*math.pow(M,2)))
return [round(G,5),round(dG,5)]
M = float(input())
r = float(input())
print((thrust_flow_function(float(M),float(r))))
In the current code, I'm returning both the values as list. However, when I try to return both the values as separate
return G return dG
it only gives me the value of G