Answer the question
In order to leave comments, you need to log in
How to parse a two-dimensional cyclically updated list into separate elements in python?
For example, such a list
list = . .. and it is replenished cyclically
When I have a match on the composition of the block (but not on the sequence), for example
[[30, 15, 25], ...........[15,25,30]. ...] I need to fix it.
How can I do that?
After receiving them, you need to be able to compare all the numbers, taking into account their order according to
the condition X(n)>=X(ne1)
Answer the question
In order to leave comments, you need to log in
It's not entirely clear what you need, but you can parse a two-dimensional list into individual elements like this:
arr =
sum(arr, [])
To compare by the composition of the block, sort it or use set:
>>> set([1, 4, 3]) == set([4, 3, 1])
True
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question