.split())) lst.sort() lst = [chr(i) for i in lst] print('<'.join(lst))