I need to write a function where I need to check if two lists with elements like these
(['E', 'A', None, 'D', 'B', None, None, 'C'], ['B', None, None, 'C', 'E', 'A', None, 'D'])
have the same elements, in the same order, but with other starting points.
So if you search 'E'
in the second list, and take that as starting point, you get:
(['E', 'A', None, 'D', 'B', None, None, 'C'], ['E', 'A', None, 'D', 'B', None, None, 'C'])
These two are the same, so they have to return True
.
If they are not the same, it needs to return False
.
I'm sorry for the duplicate, I'm not a native english speake and didn't knew how to express it