'''err=dir(locals()['__builtins__'])
print(err)
print(len(err))'''
try:
    a=10
    b=0
    c=a/b
    print(c)
except Exception as e:
    print(e)
try:
    a=10
    b=0
    c=a/b
    print(c)
except ZeroDivisionError as e:
    print("Error",e)   
#Name Error:
try:
    name="sam"
    print(age)
except NameError as e:
    print("Name error",e) 
#value Error
try:
    num=int(input("Enter the number"))
    print(num)    
except ValueError as e:
    print("VAlue error:",e)
#Index error
try:
    li=[10,45,20,30,48]
    print(li[5])
except IndexError as e:
    print("Index Error",e)
#KEY ERROR
try:
    dd={"Name":"sam","name1":"pk"}
    print(dd['age'])
except KeyError as e:
    print("KEy error:",e)
#Attribute Error:
try:
    class a:

        pass
    A=a()
    a.hello()
except AttributeError as e:
    print("Attribute Error:",e)
4af42697dd0feb5822f1f0baaf800287134dc8e5
<mask token>

<mask token>
try:
    a = 10
    b = 0
    c = a / b
    print(c)
except Exception as e:
    print(e)
try:
    a = 10
    b = 0
    c = a / b
    print(c)
except ZeroDivisionError as e:
    print('Error', e)
try:
    name = 'sam'
    print(age)
except NameError as e:
    print('Name error', e)
try:
    num = int(input('Enter the number'))
    print(num)
except ValueError as e:
    print('VAlue error:', e)
try:
    li = [10, 45, 20, 30, 48]
    print(li[5])
except IndexError as e:
    print('Index Error', e)
try:
    dd = {'Name': 'sam', 'name1': 'pk'}
    print(dd['age'])
except KeyError as e:
    print('KEy error:', e)
try:


    class a:
        pass
    A = a()
    a.hello()
except AttributeError as e:
    print('Attribute Error:', e)

'''err=dir(locals()['__builtins__'])
print(err)
print(len(err))'''
try:
    a=10
    b=0
    c=a/b
    print(c)
except Exception as e:
    print(e)
try:
    a=10
    b=0
    c=a/b
    print(c)
except ZeroDivisionError as e:
    print("Error",e)   
#Name Error:
try:
    name="sam"
    print(age)
except NameError as e:
    print("Name error",e) 
#value Error
try:
    num=int(input("Enter the number"))
    print(num)    
except ValueError as e:
    print("VAlue error:",e)
#Index error
try:
    li=[10,45,20,30,48]
    print(li[5])
except IndexError as e:
    print("Index Error",e)
#KEY ERROR
try:
    dd={"Name":"sam","name1":"pk"}
    print(dd['age'])
except KeyError as e:
    print("KEy error:",e)
#Attribute Error:
try:
    class a:

        pass
    A=a()
    a.hello()
except AttributeError as e:
    print("Attribute Error:",e)