def insertFromDict(table, dict):
    """Take dictionary object dict and produce sql for 
    inserting it into the named table"""
    sql = 'INSERT INTO ' + table
    sql += ' ('
    sql += ', '.join(dict)
    sql += ') VALUES ('
    sql += ', '.join(map(dictValuePad, dict))
    sql += ');'
    return sql
Take dictionary object dict and produce sql for 
    inserting it into the named table
recipes/Python/457661_Generate_SQL_insertatiintable_dictionary/recipe-457661.py