<jupyter_start><jupyter_text>1. Write a function to compute 5/0 and use try/except to catch the exceptions.<jupyter_code>try: 
    result = 5/0
    print(result)
except Exception as e:
    print(e)<jupyter_output>division by zero<jupyter_text>2. Implement a Python program to generate all sentences where subject is in  ["Americans", "Indians"] and verb is in ["Play", "watch"] and the object is in  ["Baseball","cricket"]. **Hint:** Subject,Verb and Object should be declared in the program as shown below.subjects=["Americans ","Indians"] verbs=["play","watch"] objects=["Baseball","Cricket"] **Output should come as below:**Americans play Baseball. Americans play Cricket. Americans watch Baseball. Americans watch Cricket. Indians play Baseball. Indians play Cricket. Indians watch Baseball. Indians watch Cricket.<jupyter_code>subjects=["Americans","Indians"]
verbs=["play","watch"]
objects=["Baseball","Cricket"]
try:
    sentences = [ sub+" "+v+" "+obj for sub in subjects for v in verbs for obj in objects]
    for i in sentences:
        print(i)    
except Exception as e:
    print(e)<jupyter_output>Americans play Baseball
Americans play Cricket
Americans watch Baseball
Americans watch Cricket
Indians play Baseball
Indians play Cricket
Indians watch Baseball
Indians watch Cricket
{'fraction_non_alphanumeric': 0.10432766615146831, 'fraction_numerical': 0.00463678516228748, 'mean_word_length': 5.348039215686274, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '619698', 'license': 'Apache-2.0', 'n_tokens_mistral': 381, 'n_tokens_neox': 351, 'n_words': 146, 'path': 'Python Assignment - Exception Handling.ipynb', 'repo_name': 'aarohisnh/Assignment', 'size': '1294'}