I am working with two arrays in python where one contains a series of points and another contains related points.

Below shows an example of the two arrays
In the first array, The first index is the ID of the point and the second and third index are the X and Y coordinates respectively.
In the second array, the first index is the related point and the second index is the current point.

**Example:**

```
('1', '7.0', '7.0') ('2', '1')

('2', '7.0', '15.0') ('2', '1')

```

What I have coded so far:

```py
def getPairs(listNode,listEdge):
    for node in listNode:
        for edge in listEdge:
            if fromString(node)[0] == fromString(edge)[1]:
                print(fromString(node),fromString(edge))

```

How can I print the current point and the corresponding point on the same line?