Ladder

Ladder. Given an integer n (where n ≤ 9), print a ladder of n steps. The k-th step consists of the integers from 1 to k without spaces between them.

Use the sep and end arguments in the print() function to achieve this.

Test Case Input (n) Expected Output
1 3 1
12
123
2 5 1
12
123
1234
12345
3 4 1
12
123
1234