LearnPy Hub
← Loops problems
Medium

Number Triangle

Read n and print a triangle where row i contains the numbers 1 to i separated by spaces.

Input

One integer n ≥ 1.

Output

n lines.

Sample 1

Input
4
Output
1
1 2
1 2 3
1 2 3 4

Sample 2

Input
1
Output
1
solution.py
Output appears here
Number Triangle · Python practice problem · LearnPy Hub