MySQL.
{}".format(database_name) cursor.execute(sql) connection.commit() Let's start an ipython shell and execute function create_database. >>> from inserts import create_database >>> create_database('frodo') This should have created a database named frodo. Table setup Let's add the following function in