Write a recursive function that takes a multi-dimensional list, and returns a one-dimensional list. For the love of God, write some pseudocode before you code - and don't forget to write some tests!
input = [1, 2, [3], [4,5]]
output = [1, 2, 3, 4, 5]input = [1, [2], [3, [4, 5, [6]]], 7]
output = [1, 2, 3, 4, 5, 6, 7]Stuck? Have a code error? Use the "4 Before Me" debugging checklist to help you solve it!