Looks like homework.
What are the contents of data_list?
What do you need to do to each one?
Trentacle
Junior Poster in Training
72 posts since Dec 2010
Reputation Points: 110
Solved Threads: 20
Do function like:
>>> def change(ind, info):
return '<p>%(ind)i: <a href="%(info)s" target="blank">%(info)s</a></p>' % locals()
>>> change(1, 'www.google.com')
'<p>1: <a href="www.google.com" target="blank">www.google.com</a></p>'
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852