Post

Earnest Codes
Earnest Codes@Earnesto037·
@Python_Dv Answer: B) 2 The finally block in Python is always executed before leaving the try...finally statement, whether an exception occurred or not. If both the try block and the finally block contain a return statement, the return value from the finally block
English
0
0
0
506
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@Python_Dv Output : 2 ✅ (Option B) Why: In Python, the finally block always runs, even if the try block returns first. So this happens: try: hits return 1 (Python prepares to return 1) then finally: runs and hits return 2 that overrides the earlier return So print(func()) prints 2.
English
0
0
0
466
Who Am I?
Who Am I?@The_Rid_dler·
@Python_Dv I love to RIDDLE! ! 👇 One path declares intent. Another enforces reality. The last word is not spoken where you think it is. In this system, cleanup outranks promise— and control flow bows to certainty. Hint: Finality is a stronger invariant than return. #ControlFlow
English
0
0
0
376
Paylaş