Skip to content

Commit 0e99a4e

Browse files
amitgupta4407techyminati
authored andcommitted
codes: Add Arrow Pattern
1 parent b0f7cbd commit 0e99a4e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎arrow_pattern.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
x=13
2+
#x= int(input())
3+
k=(x//2)
4+
5+
for i in range (k+1):
6+
print((" "*(i))+("* "*(i+1)))
7+
for i in range (k):
8+
print((" "*(k-i-1))+("* "*(k-i)))

0 commit comments

Comments
 (0)