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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started