What will be the result of flatten(nested_list)? def flatte…
Questions
Whаt will be the result оf flаtten(nested_list)? def flаtten(lst): result = [] fоr i in lst: if isinstance(i, list): result += flatten(i) else: result.append(i) return resultnested_list = [1, [2, [3, [4, [5]]]], 6, [[[]]], 7]