thanks very much indeed for your help is there a better way to do this (python3) newby
Gary Wood
woodygar at sky.com
Mon Feb 23 18:33:31 EST 2009
'''exercise to complete and test this function'''
import string
def joinStrings(items):
'''Join all the strings in stringList into one string,
and return the result. For example:
>>> print joinStrings(['very', 'hot', 'day'])
'veryhotday'
'''
for i in items:
return (''.join(items))
def main():
print(joinStrings(['very', 'hot','day']))
print(joinStrings(['this', 'is','it']))
print(joinStrings(['1', '2', '3', '4', '5']))
main()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090223/6ca6247b/attachment.html>
More information about the Python-list
mailing list