Question: Python Given a list of non-empty strings, return a dictionary with a key for every different first character seen, with the value of all the
Given a list of non-empty strings, return a dictionary with a key for every different first character seen, with the value of all the strings starting with that character appended together in the order they appear in the list. Example runs: \# problem_fourteen(["salt", "tea", "soda", "toast"]) \{"s": "saltsoda", "t": "teatoast" \# problem_fourteen(["aa", "bb", "cc", "aAA", "cCC", "d"]) ["a": "aaaAA", "b": "bb", "c": "ccccC", "d": "d" \# problem_fourteen ([]){} def problem_fourteen(strings): \# code goes here: return dictionary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
