+ 1
Searcher for identical values with the same index in nested lists. [RU]
Sorry for the probably incorrect terms. Why does it outputs the same lists? Why does he stop outputting? Is this an effective method from simple ones? https://code.sololearn.com/cp4Rv3X9Z9lt/?ref=app
2 Antworten
0
I didn't understand clearly what you want to do. Can you give an example of what to search, and which value(s) matches the condition?
0
Ipang Ok, think of it as a square matrix. The meaning of the task: find pairs of strings whose values in a column match. What you need to output: a list (not a type) in which the pair found is indicated and the column number in which the match is indicated. Moreover, the results should not be mirrored (such as: <a-line N b-line> and <b-line N a-line>) and should not repeat itself (such as: <a-line N a-line>). How I realized this: the second compared line is taken from the slice [<number of the first compared line> +1:].