Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [
- [1.1, 2, 3, 4],
- [2, 2, 2, 2],
- [2, 3, 2, 3],
- [3, 4, 4, 3],
- [1, 1, 1, 2],
- [3, 1, 2, 3]
- ]
- for r in a:
- s1 = set(r)
- for i in range(len(r)):
- j = i + len(s1)
- s2 = set(r[i:j])
- if (s1 == s2):
- print("From " + str(i) + " to " + str(j))
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement