<jupyter_start><jupyter_text>Error handling<jupyter_code>try:
    f = open('read_only.txt','r')
    f = write('hello i am arti')
    
except:
    print("file is not writable mode")
    
finally:
    print('final stage of the program')<jupyter_output>file is not writable mode
final stage of the program
{'fraction_non_alphanumeric': 0.10927152317880795, 'fraction_numerical': 0.0, 'mean_word_length': 4.135593220338983, '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': '598092', 'license': 'Apache-2.0', 'n_tokens_mistral': 106, 'n_tokens_neox': 105, 'n_words': 30, 'path': 'day8/Error_handling.ipynb', 'repo_name': 'ArtiBari0/LetsUpgrade-python', 'size': '302'}