Medium
All Pairs
Read n and print the list of all pairs (i, j) with 1 ≤ i < j ≤ n.
Input
One integer n ≥ 1.
Output
A list of tuples.
Sample 1
Input
3
Output
[(1, 2), (1, 3), (2, 3)]
Sample 2
Input
1
Output
[]
Output appears hereOne integer n ≥ 1.
A list of tuples.
3
[(1, 2), (1, 3), (2, 3)]
1
[]
Output appears here