Hello,

I am having trouble coming up with a solution to this exercise and any help
would be appreciated, thanks! I have attached the code below.



'''exercise to complete and test this function'''

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()
'''exercise to complete and test this function'''

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()
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to