-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpattern.py
More file actions
38 lines (26 loc) · 1.25 KB
/
pattern.py
File metadata and controls
38 lines (26 loc) · 1.25 KB
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
29
30
31
32
33
34
35
36
37
38
# # # row=int(input("enter num of rows"))
# # # for i in range(row):
# # # i=i+1
# # # for j in range(i):
# # # j=j+1
# # # print(i ,end="")
# # # print("\r")
# # # row = int(input("Enter number of rows: "))
# # # for i in range(row):
# # # for j in range(i + 1): # No need to increment `j` explicitly
# # # print("*", end="")
# # # print() # Move to the next line after each row
# # # row = int(input("Enter number of rows: "))
# # # for i in range(row, 0, -1): # Start from 'row' and decrement to 1, 0 koduthath means ethra step vech aanu reverse aakendath allaki if 0ku pakaram 1 koduthal oru step kazhijee aduthath eru oru step skip aavum ############
# # # for j in range(i): # Print 'i' asterisks in each row
# # # print("*", end="")
# # # print() # Move to the next line after each row
# # row = int(input("Enter number of rows: "))
# # for i in range(1, row + 1): # Start from 1 to 'row'
# # # Print increasing part
# # for j in range(1, i + 1):
# # print(j, end="")
# # # Print decreasing part
# # for j in range(i - 1, 0, -1):
# # print(j, end="")
# # print() # Move to the next line after each row