0

Please can any one explain me its solution

try: print(0**0,end="") except: print(0, end="") finally: print(2,end="")

5th Sep 2017, 11:42 PM
Coding Raja
Coding Raja - avatar
1 Odpowiedź
+ 2
0**0 = 1 end="" means that no new line will occur with the print statement there is no error so the except block is skipped and the finally block is always ran which will output 2 for a combined output of 12
6th Sep 2017, 12:16 AM
ChaoticDawg
ChaoticDawg - avatar