Question: * Complete the following function. This starting code is in joinAllStub.py. Save it to the new namejoinAll.py. Note the way an example is given in
* Complete the following function. This starting code is in joinAllStub.py. Save it to the new namejoinAll.py. Note the way an example is given in the documentation string. It simulates the use of the function in the Shell. This is a common convention:
need to finish the code:
def joinStrings(stringList): '''Join all the strings in stringList into one string, and return the result, NOT printing it. For example: >>> s = joinStrings(['very', 'hot', 'day']) # returns string >>> print(s) veryhotday ''' # finish the code for this function def main(): print(joinStrings(['very', 'hot', 'day'])) print(joinStrings(['this', 'is', 'it'])) print(joinStrings(['1', '2', '3', '4', '5']))
main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
