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.
2 parents 7433a29 + e0f2c63 commit 98a0b02Copy full SHA for 98a0b02
Status/Day_23.md
@@ -214,6 +214,21 @@ if __name__ == '__main__':
214
n = int(input())
215
print_rangoli(n)
216
```
217
+**suggula jaswanth**
218
+
219
+```python3
220
+def rangoli(n):
221
+ # your code goes here
222
+ l1=list(map(chr,range(97,123)))
223
+ x=l1[n-1::-1]+l1[1:n]
224
+ mid=len('-'.join(x))
225
+ for i in range(1,n):
226
+ print('-'.join(l1[n-1:n-i:-1]+l1[n-i:n]).center(mid,'-'))
227
+ for i in range(n,0,-1):
228
229
+rangoli(5)
230
231
+```
232
233
---
234
0 commit comments