<reponame>steel-a/python-pandas-tutorial<filename>python3/12-exceptions.py<gh_stars>0
n1 = 10
n2 = 0

try:
    print(n1/n2)
except Exception as ex:
    print("Error:", ex)
    # 'pass' to do nothing
else:
    print('No error')
finally:
    print('Finally ends!')

n1 = 10
n2 = 0

try:
    print(n1/n2)
except Exception as ex:
    print("Error:", ex)
    # 'pass' to do nothing
else:
    print('No error')
finally:
    print('Finally ends!')
# 'pass' to do nothing