def end():
    male('I am glad that I was able to help you')
    print(response[2])
    input('press enter key to exit.')
    male('press enter key to exit.')

    exit()
def calci():
    while True:
        print('enter your queries: ')
        male('enter your queries:')
        text = rect()
        r = 0
        for word in text.split(' '):
            if word.upper() in operations.keys():
                try:
                    l = operations_from_text(text)
                    q = str(operations[word.upper()].__name__)
                    if q == 'mul':
                        r = 1
                        for i in range(len(l)):
                            r = operations[word.upper()](r, l[i])
                    elif q == 'add':
                        for i in range(len(l)):
                            r = operations[word.upper()](r, l[i])
                    elif q == 'div' or 'lcm' or 'hcf' or 'sub':
                        r = float(l[0])
                        for i in range(1, len(l)):
                            r = operations[word.upper()](r, l[i])
                    elif q == 'mod':
                        r = operations[word.upper()](l[0], l[1])
                    print(r)
                    male(r)
                    return (r)
                    break
                except:
                    print('something went wrong going please enter again !!')
                    male('something went wrong going please enter again !!')
                    r = 'something went wrong going please enter again !!'
                    break
                finally:
                    break
            elif word.upper() in commands.keys():
                commands[word.upper()]()
                break
        else:
            sorry()
        return (r)
def sorry():

    print(response[3])
    male('Sorry ,this is beyond my ability')
def myname():

    print(response[1])
    male('My name is Cavill')
    'HCF': hcf,
    'PRODUCT': mul,
    'MULTIPLY': mul,
    'MULTIPLICATION': mul,
    'DIVIDE': div,
    'DIVISION': div,
    'MOD': mod,
    'REMANDER': mod,
    'MODULAS': mod
}

# commands
commands = {'NAME': myname, 'EXIT': end, 'QUIT': end, 'END': end, 'CLOSE': end}

print('--------------' + response[0] + '------------')
male('Welcome to smart calculator')
print('--------------' + response[1] + '--------------------')
male('My name is Cavill')


def calci():
    while True:
        print('enter your queries: ')
        male('enter your queries:')
        text = rect()
        r = 0
        for word in text.split(' '):
            if word.upper() in operations.keys():
                try:
                    l = operations_from_text(text)
                    q = str(operations[word.upper()].__name__)
    'HCF': hcf,
    'PRODUCT': mul,
    'MULTIPLY': mul,
    'MULTIPLICATION': mul,
    'DIVIDE': div,
    'DIVISION': div,
    'MOD': mod,
    'REMANDER': mod,
    'MODULAS': mod
}

# commands
commands = {'NAME': myname, 'EXIT': end, 'QUIT': end, 'END': end, 'CLOSE': end}

#print('--------------'+response[0]+'------------')
male('Welcome to smart calculator')
#print('--------------'+response[1]+'--------------------')
male('My name is Jino')


def calci():
    while True:
        print('enter your queries: ')
        male('enter your queries:')
        text = rect()
        r = 0
        for word in text.split(' '):
            if word.upper() in operations.keys():
                try:
                    l = operations_from_text(text)
                    q = str(operations[word.upper()].__name__)