We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27601b6 commit 7ef1fbeCopy full SHA for 7ef1fbe
patterns.py
@@ -78,6 +78,7 @@
78
else:
79
print(j, end=' ')
80
print()
81
+
82
''' *****
83
****
84
***
@@ -89,3 +90,27 @@
89
90
print("*", end="")
91
else :
92
93
94
+'''
95
+ *
96
97
98
99
+ * * * * * * * * *
100
101
102
103
104
105
+rows = int(input("Enter Desired Number of Rows for the Pattern : "))
106
+c = 1
107
+while(c < rows*2):
108
+ r = 1
109
+ while(r < rows*2):
110
+ if c == rows or r == rows:
111
+ print('* ', end = '')
112
+ else:
113
+ print(' ', end = ' ')
114
+ r = r + 1
115
+ c = c + 1
116
+ print("")
0 commit comments