diff --git a/Pattern_ScreenShots/sanchit781.png b/Pattern_ScreenShots/sanchit781.png new file mode 100644 index 00000000..3d68a270 Binary files /dev/null and b/Pattern_ScreenShots/sanchit781.png differ diff --git a/Patterns/sanchit781.py b/Patterns/sanchit781.py new file mode 100644 index 00000000..0c7315d5 --- /dev/null +++ b/Patterns/sanchit781.py @@ -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("*") diff --git a/Photos/sanchit781.jpeg b/Photos/sanchit781.jpeg new file mode 100644 index 00000000..9885e377 Binary files /dev/null and b/Photos/sanchit781.jpeg differ