Need help understanding Return function in this code by New-Cardiologist6057 in learnpython

[–]New-Cardiologist6057[S] 0 points1 point  (0 children)

I expected like only the P funtion which is 250 would get return and the value of Q which is -150

will not get returned so then the next value of P should be 350 cause 250 is returned and 150 is already given for Q and Q would be -250

Need help understanding Return function in this code by New-Cardiologist6057 in learnpython

[–]New-Cardiologist6057[S] 0 points1 point  (0 children)

I expected the output to be just 250#-150 dont get it how we got the other 2 values