Suppose we have the list called names. Group them by the first letter and print the groups the alphabetical order.
Note that you only need to print the groups as lists without the key. For example:
['Ann']
['Jack', 'Jane']
['Michael']Suppose we have the list called names. Group them by the first letter and print the groups the alphabetical order.
Note that you only need to print the groups as lists without the key. For example:
['Ann']
['Jack', 'Jane']
['Michael']Create a free account to access the full topic