Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [((1, 6), (8, 2)), ((8, 2), (6, 3)), ((6, 3), (9, 4)), ((9, 4), (5, 7))]
- A = [1,6], B = [8,2]
- A = [8,2], B = [6,3]
- C1 = (A[1]+B[1],A[2]+B[2])
- C2 = (A[1]+B[1],A[2]+B[2])
- X = [1,8,6,9,5]
- Y = [6,2,3,4,7]
- res = list(zip(X,Y))
- a = list(zip(res, res[1:]))
- print(a)
- >>> a = [((1, 6), (8, 2)), ((8, 2), (6, 3)), ((6, 3), (9, 4)), ((9, 4), (5, 7))]
- >>> A = a[0][0]; B = a[0][1]
- >>> A
- (1, 6)
- >>> B
- (8, 2)
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement