def seq_concat_item(seq, item):
 return ((seq + (item,)) if isinstance(seq, tuple) else (seq + [item]))

def seq_concat_item ( seq , item ) : return ( ( seq + ( item , ) ) if isinstance ( seq , tuple ) else ( seq + [ item ] ) )
return copy of sequence seq with item added .