Skip to content

Commit 21ddd95

Browse files
authored
Create diamond_symbol.py
1 parent c71e4e5 commit 21ddd95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

diamond_symbol.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
n = int(input())
2+
for i in range (0,n):
3+
print(" "*(n-i),"#"*i + str("#"*(i-1)))
4+
for i in range(n,0,-1):
5+
print(" "*(n-i),"#"*i + str("#"*(i-1)))

0 commit comments

Comments
 (0)