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 Antworten
+ 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?