We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
def findPoint(lst):
# Write your code here
for i in lst:
px, py, qx, qy = i
rx = 2*qx - px
ry = 2*qy - py
print(rx,ry)
list1=[(0,0,1,1),(1,1,2,2)]
findPoint(list1)
Find the Point
You are viewing a single comment's thread. Return to all comments →
def findPoint(lst): # Write your code here for i in lst: px, py, qx, qy = i rx = 2*qx - px ry = 2*qy - py print(rx,ry) list1=[(0,0,1,1),(1,1,2,2)] findPoint(list1)