PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Created by Utsav Singh
'''Print the Pattern
Write a program to output the following patterns given the number of rows:
As a second challenge, create a program to output the patterns in reverse (from bottom row to top).[1-7]
Just one input required and it is for no. of rows for the patterns
Input:-
5
Output:-
Pattern #1
1
22
333
4444
55555
and so on.
Pattern #2
1
12
123
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run