Closed abhitrueprogrammer closed 2 years ago
Added the sorted method for sorting the list of letters. Also added setdefault instead of using if statements (didn't use defaultdict, as no prior knowledge of it is given in the book (AFAIK) and it imports a module, which is unnecessary).
Looks good, but I didn't want to use those features in the solution because they had not been presented yet in the book.
Added the sorted method for sorting the list of letters. Also added setdefault instead of using if statements (didn't use defaultdict, as no prior knowledge of it is given in the book (AFAIK) and it imports a module, which is unnecessary).