Nov-28-2016, 09:24 PM
"""
Create a function called
strings L, and a delimeter D. The function must:
1. Return a single string, containing all of the input strings joined together
with D as a delimeter between them. The result should not start or end with
the delimeter D - D should be used only between the substrings.
2. When inspected, would return the following help string:
Join the list L using the delimeter D
For example:
list2str( ['a','b','c'], ',') -> 'a,b,c'
list2str('We','are','the','location','cloud','.') -> 'We are the location cloud.'
"""
Create a function called
list2str
, that takes two arguments - a list ofstrings L, and a delimeter D. The function must:
1. Return a single string, containing all of the input strings joined together
with D as a delimeter between them. The result should not start or end with
the delimeter D - D should be used only between the substrings.
2. When inspected, would return the following help string:
Join the list L using the delimeter D
For example:
list2str( ['a','b','c'], ',') -> 'a,b,c'
list2str('We','are','the','location','cloud','.') -> 'We are the location cloud.'
"""