Two Lists inside a List to One

Published by jameel in

Programmer Pete is trying to combine two lists inside one list into one without changing the order of the list nor the type and because he's pretty advanced he made it without blinking, but I want you to make it, too.

Examples

one_list([[1, 2], [3, 4]]) ➞ [1, 2, 3, 4]

one_list([["a", "b"], ["c", "d"]]) ➞ ["a", "b", "c", "d"]

one_list([[True, False], [False, False]]) ➞ [True, False, False, False]

Notes

  • Remember to return the list.
  • Check Resources for more info.
Watch a quick demo on how Edabit works.