Login and get codingWrite a function that accepts a list of lists and joins them with a separator character, therefore flattening and separating.
Examples:
>>> join_lists([ ['a', 'b'], ['c'] ], '&')
['a', 'b', '&', 'c']
>>> join_lists([ ['a', 'b'], ['c'], ['d', 'e'] ], '+')
['a', 'b', '+', 'c', '+', 'd', 'e']Note: Calling the function with an empty list should return
None
.
174 out of 178 users completed this Bite.
Will you be the 175th person to crack this Bite?
Resolution time: ~21 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 4.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪