[Tutor] how-to generate specific lines of text from two python lists

Danny Yoo danny.yoo at gmail.com
Sun Jun 25 15:05:46 EDT 2017


As the other tutors have suggested, look into doing the SQL updates
directly, rather than format strings of SQL commands.

A major reason is because strings do not natively support the
representation of nested, grammatical things like sentences or SQL
commands.  It's really easy to write a string formatting program that works
on simple input but will break spectacularly on real-world data.

Do a web search for the term "Bobby Tables" for a concrete explanation of
the problem.


More information about the Tutor mailing list