<jupyter_start><jupyter_text>use try,except and finally<jupyter_code>try:
    for i in ['x','y','z']:
        print(i**2)
except SyntaxError:
    print('Syntax Error')
except TypeError:
    print('Type Error')
except OSError:
    print('OS Error')
finally:
    print('Good job!')<jupyter_output>Type Error
Good job!
{'fraction_non_alphanumeric': 0.1492063492063492, 'fraction_numerical': 0.0031746031746031746, 'mean_word_length': 4.745454545454545, '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': '122314', 'license': 'MIT', 'n_tokens_mistral': 118, 'n_tokens_neox': 116, 'n_words': 27, 'path': 'Assignments/(ABI) Assignment 4.ipynb', 'repo_name': 'ParadoxPD/Intro-to-machine-learning', 'size': '315'}