Generare uno script Python per analizzare la lista data.
lista = [[5, 10], [2, 3, 4], [50]]
def parse_list(lst):
    result = []
    for element in lst:
        if type(element) is list:
            result.extend(element)
        else:
            result.append(element)
    return result

result = parse_list(lista)
print(result)