Example: write a join function

Exercise:
Write a function myjoin that concatenates a list of strings to a single string, with a specified delimiter between the list elements. That is, myjoin is supposed to be an implementation of a string's join method in terms of basic string operations.
Functionality:
s = myjoin(['s1', 's2', 's3'], '*')
# s becomes 's1*s2*s3'

previousnexttable of contents