LearnPy Hub
← Comprehensions problems
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
[]
solution.py
Output appears here
All Pairs · Python practice problem · LearnPy Hub