+ 1

exceptions

try: variable = 10 print (10 / 2) except ZeroDivisionError: print("Error") print("Finished") a)5.0 Finished b)Error Finished c)5.0 print(10/2) prints 5 with new line so,answer should be 5.0 Finished

18th Sep 2017, 12:03 PM
MANKALA RAVALIKA
MANKALA RAVALIKA - avatar
1 Réponse
0
put print("Finished") after finally:
23rd Sep 2017, 8:27 PM
NulledNVoided
NulledNVoided - avatar