% symbol in python

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Oct 28 23:17:11 CET 2014

On 28/10/2014 21:41, satishmlmlml at gmail.com wrote:
> <tr><th>key<td><input type=text name=key value="%(key)s">
> rowhtml = '<tr><th>%s<td><input type=text name=%s value"%%(%s)s">\n"
> what does % mean in first line of code and
> what does %%(%s)s mean in second line of code
> kindly explain

Please refer to 

My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

More information about the Python-list mailing list