Python · SQLite & XML
You build an INSERT query by interpolating user input directly: ``` name = user_input sql = ("INSERT INTO suppliers " "VALUES ('%s')" % name) cur.execute(sql) ``` Why is this dangerous, and what's the fix?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
