A Python application is being developed to manage user accou…
A Python application is being developed to manage user accounts. The application needs to insert new user data into a database, but the developers are concerned about preventing malicious users from manipulating SQL queries through input fields (e.g., by inserting ‘; DROP TABLE users; — into a username field). Question: What is the most effective and industry-standard method in Python DB-API 2.0 to protect against SQL injection vulnerabilities when executing DML statements?