def update_query(tablename, objects, condition):
    """
    Function to process the query for update process
    """
    if isinstance(tablename, str):
        pass
    else:
        raise ValueError('Table name should be a String')
    if condition == None or isinstance(condition, str):
        pass
    else:
        raise ValueError('Condition can only be either None or String')
    if isinstance(objects, dict):
        pass
    else:
        raise ValueError('Object can only be Dictionary')
    cols = ''
    for i in objects.keys():
        if isinstance(objects[i], str):
            substr = str(i) + " = '" + str(objects[i]) + "',"
        else:
            substr = str(i) + ' = ' + str(objects[i]) + ','
        cols = cols + substr
    cols = cols[:len(cols) - 1]
    if condition == None:
        query = 'Update ' + tablename + ' set ' + cols
    else:
        query = 'Update ' + tablename + ' set ' + cols + ' where ' + condition
    return query
