<jupyter_start><jupyter_text>Order: try  except else finally<jupyter_code>#Predict the Output:
class ZeroDenominatorError(ZeroDivisionError):
    pass
try:
    a = 10
    b = 0
    if(b==0):
        raise ZeroDenominatorError()
    c = a/b
except ZeroDivisionError:
    print('Zero Division Error occured',end= " ")
except ZeroDenominatorError:
    print('Zero Denominator Error occured',end = " ")
else:
    print("else works")
#Predict the Output:
class ZeroDenominatorError(ZeroDivisionError):
    pass
try:
    a = 10
    b = 5
    if(b==0):
        raise ZeroDenominatorError()
    c = a/b
except ZeroDivisionError:
    print('Zero Division Error occured',end= " ")
except ZeroDenominatorError:
    print('Zero Denominator Error occured',end = " ")
else:
    print('else works')
#Predict the Output:
class ZeroDenominatorError(ZeroDivisionError):
    pass
try:
    a = 10
    b = 5
    if(b==0):
        raise ZeroDenominatorError()
    c = a/b
except ZeroDivisionError:
    print('Zero Division Error occured',end= " ")
except ZeroDenominatorError:
    print('Zero Denominator Error occured',end = " ")
else:
    print("else works",end=' ')
finally:
    print("finally works")<jupyter_output>else works finally works
{'fraction_non_alphanumeric': 0.11292962356792144, 'fraction_numerical': 0.009819967266775777, 'mean_word_length': 3.77734375, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '657674', 'license': 'Unlicense', 'n_tokens_mistral': 411, 'n_tokens_neox': 401, 'n_words': 103, 'path': '05 OOPS-3/5.8 Else and Finally.ipynb', 'repo_name': 'suhassuhas/Coding-Ninjas---Data-Structures-and-Algorithms-in-Python', 'size': '1222'}