Question: Write a python script to connect to a mysql database and prompt the user for a word. Search the database for the user's word. If

Write a python script to connect to a mysql database and prompt the user for a word. Search the database for the user's word. If it exists, prompt the user to update it to a new word. Otherwise, add the word. Ensure you are escaping your inputs to prevent SQL injection.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!