Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

New Pattern Added #569

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Pattern_ScreenShots/sanchit781.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions Patterns/sanchit781.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
rows = 15
k = 4 * rows - 4
for i in range(rows):
for _ in range(k):
print(" ", end="")
k = k - 1
print("*", end="")
for _ in range(i*2):
print(" ", end="")
print("*")
k = rows - 4
for i in range(rows, -1, -1):
for j in range(k, 0, -1):
print(" ",end="")
k = k + 1
print("*", end="")
for _ in range((i)*2):
print(" ", end="")
print("*")
Binary file added Photos/sanchit781.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.