<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delimited(items, character='|'):
 """Returns a character delimited version of the provided list as a Python string"""

    return '|'.join(items) if type(items) in (list, tuple, set) else items