0
Why the answer is 2?
What is the highest number this function prints if called? def pn(): print(1) print(2) return print(3) print(4) Why the answer is 2?
4 Answers
+ 4
return leaves the current function call with the expression list (or None) as return value.
+ 1
As stated above. @ēęē¦, yes, that's correct.
+ 1
Got it! Thank you all for answering.š
0
So, if return was not here, the result would be 4?