"Kam-Hung Soh" <kamhung.soh at gmail.com> writes: > I avoid creating a temporary variable if it's only used once > immediately, so I would have written: > > newtlist = ''.join(sorted(list(line))) Or ''.join(sorted(line)) as sorted() works with any iterable. -- Arnaud