<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def join_cols(cols):
 """Join list of columns into a string for a SQL query"""

    return ", ".join([i for i in cols]) if isinstance(cols, (list, tuple, set)) else cols