Searcher for identical values with the same index in nested lists. [RU] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

15th May 2020, 10:09 AM
PAL
PAL - avatar
2 Answers
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?
15th May 2020, 11:07 AM
Ipang
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:].
15th May 2020, 12:45 PM
PAL
PAL - avatar