Hello all, <br><br>I am working on learning Python(on my own) and ran into an exercise that I figured out but I wanted to know if there was a different way to write the code? I know he wanted a different answer for the body because we haven't gotten to the ' '.join() command yet. <br>
<br>This is what I have:<br><br>def joinStrings(stringList):<br> string = []<br> for string in stringList:<br> print ''.join(stringList)<br> <br> <br>def main():<br> print joinStrings(['very', 'hot', 'day'])<br>
print joinStrings(['this', 'is', 'it'])<br> print joinStrings(['1', '2', '3', '4', '5'])<br><br>main()<br><br><br>thanks all <br>