[Tutor] String with literal %s
Toni Fuente
tonifuente at yahoo.co.uk
Thu Mar 20 15:46:53 CET 2014
Hi again,
I am trying to create a string this way:
insertion = "INSERT INTO mytable(week %s) VALUES (\%s, \%s)" % osStringI
not enough arguments for format string
Where the first %s is going to be substitute by the variable osStringI,
but the other two VALUES (\%s, \%s), should be created as literals '%s'.
How can I do that?
Regards,
--
Toni
When your work speaks for itself, don't interrupt.
-- Henry J. Kaiser
More information about the Tutor
mailing list