good afternoon
tell me how to parse a text file on python .. file of the form:
первое 3 текст | текст | текст текст| текст| текст текст| текст| текст второе 5 текст| текст| текст текст| текст | текст текст| текст| текст текст| текст | текст текст| текст| текст it is necessary to continue the parsing on the second line, with a number, i.e. it should indicate that after it you need to parse another n-elements, after which the cycle should re-parse 1 element, see how many lines you need to go around further and so on until the end ..
at the output you need to get a dictionary where the key is the first line, and the value is a list of the lines "text | text | text"