Now we process the dictionary and add its content to a sqlit…
Questions
Nоw we prоcess the dictiоnаry аnd аdd its content to a sqlite3 database. Write a function to receive a dictionary, then perform the following: Connect to a sqlite3 file named Cool to do the rest of the items below. A table named tableP already exists where each record is represented by an alphanumeric values, p1 p2 p3 and p3. Add each dictionary entry to the table using a sql command as follows: Use a for loop to add an entry to the table only if the email ends with .edu When done print the number of all rows that were aded using a SQL command (count). Without using an if statement, if any of the code in this function causes any type of error, return a false value. If all the records are added correctly, print the total number of changes made using a sqlite3 python function. Return a true value. Ensure to apply all the changes and close all open connections.