Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import scriptcontext as sc
- if not sc.sticky.get('triplet'):
- sc.sticky['triplet'] = (None,(None, None, None))
- xyz = (x, y, z)
- for i, (u, v) in enumerate(zip(xyz, sc.sticky['triplet'][1])):
- if u != v:
- sc.sticky['triplet'] = (i, xyz)
- break
- a = sc.sticky['triplet'][0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement