+ 1

why this exception code not running I'm confused !!

https://code.sololearn.com/cmrcLz65FrSJ/?ref=app

24th Feb 2018, 3:37 PM
khalid abdelrahman
khalid abdelrahman - avatar
2 Antworten
+ 7
you need to indent line 7
24th Feb 2018, 4:05 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
0
try: print("Hello") print(1 / 0) except ZeroDivisionError: print("Divided by zero") print (blabla) raise NameError ("invalid name") finally: print("This code will run no matter what")
4th Mar 2018, 3:17 PM
franco belfiore
franco belfiore - avatar