I have a set of data as follows
Left: Right:
1 1
2 2
3 3
5 4
7 6
9 8
1 10
I want the output / result to be this
Result
1 / 1
2 / 2
3 / 3
- / 4
5 / -
- / 6
7 / -
- / 8
9 / -
10 / 10
I have structured my two sets of data into a dictionary
key: 1, value {left: 1 right: 2} etc
How do i sort these and match them based on value? any help is appreciated.