From 600a45c16d8bdeb7b5598038f1ccbe5ca8baf956 Mon Sep 17 00:00:00 2001 From: Gaotax2006 Date: Tue, 23 Jun 2026 04:35:00 +0800 Subject: [PATCH] fix: fix 7 syntax errors in pattern files - numericpattern134/78/98: remove trailing output appended to source - numericpattern93: close unclosed parenthesis in triangle(n) - symbolpattern123: fix comparison operator j = 1 -> j == 1 - symbolpattern12/13: remove WhatsApp chat log prefix from line 1 Fixes #919 --- Numeric Patterns/numericpattern134.py | 8 -------- Numeric Patterns/numericpattern78.py | 9 --------- Numeric Patterns/numericpattern93.py | 12 +----------- Numeric Patterns/numericpattern98.py | 11 ----------- Symbol Patterns/symbolpattern12.py | 2 +- Symbol Patterns/symbolpattern123.py | 2 +- Symbol Patterns/symbolpattern13.py | 2 +- 7 files changed, 4 insertions(+), 42 deletions(-) diff --git a/Numeric Patterns/numericpattern134.py b/Numeric Patterns/numericpattern134.py index d98d70f4..0be8c89c 100644 --- a/Numeric Patterns/numericpattern134.py +++ b/Numeric Patterns/numericpattern134.py @@ -11,11 +11,3 @@ count+=5 print() - -Enter the no of rows: -5 -1 2 3 4 5 -11 12 13 14 15 -21 22 23 24 25 -16 17 18 19 20 -26 27 28 29 30 diff --git a/Numeric Patterns/numericpattern78.py b/Numeric Patterns/numericpattern78.py index 2e12ad9a..da312e18 100644 --- a/Numeric Patterns/numericpattern78.py +++ b/Numeric Patterns/numericpattern78.py @@ -13,12 +13,3 @@ def pypart2(n): print("Enter the number of rows: ") n = int(input()) pypart2(n) - - -Enter the number of rows: -5 - 1 - 2 4 - 3 6 9 - 4 8 12 16 -5 10 15 20 25 diff --git a/Numeric Patterns/numericpattern93.py b/Numeric Patterns/numericpattern93.py index fb20aff1..0f665e28 100644 --- a/Numeric Patterns/numericpattern93.py +++ b/Numeric Patterns/numericpattern93.py @@ -10,14 +10,4 @@ def triangle(n): print("Enter the number of rows: ") n = int(input()) -triangle(n - - -# OUTPUT -# Enter the number of rows: -# 5 -# 1 -# 2 2 -# 3 3 3 -# 4 4 4 4 -# 5 5 5 5 5 +triangle(n) diff --git a/Numeric Patterns/numericpattern98.py b/Numeric Patterns/numericpattern98.py index bc720b58..f0088216 100644 --- a/Numeric Patterns/numericpattern98.py +++ b/Numeric Patterns/numericpattern98.py @@ -1,4 +1,3 @@ - def pattern(n): count = 0 for i in range(n): @@ -13,13 +12,3 @@ def pattern(n): print("Enter the number of rows: ") n = int(input()) pattern(n) - -OUTPUT - -Enter the number of rows: -5 - 1 - 333 - 55555 - 7777777 -999999999 diff --git a/Symbol Patterns/symbolpattern12.py b/Symbol Patterns/symbolpattern12.py index 5a6d7a39..aa11bda1 100644 --- a/Symbol Patterns/symbolpattern12.py +++ b/Symbol Patterns/symbolpattern12.py @@ -1,4 +1,4 @@ -[13:04, 23/01/2022] Mahak Garg: height = int(input()) +height = int(input()) for i in range(1, height+1): diff --git a/Symbol Patterns/symbolpattern123.py b/Symbol Patterns/symbolpattern123.py index 7083431b..a6a1431b 100644 --- a/Symbol Patterns/symbolpattern123.py +++ b/Symbol Patterns/symbolpattern123.py @@ -4,7 +4,7 @@ for j in range(1,height+1): - if(i == 1 or j = 1 or i == j): + if(i == 1 or j == 1 or i == j): print("*",end=" ") else: diff --git a/Symbol Patterns/symbolpattern13.py b/Symbol Patterns/symbolpattern13.py index 25e5249a..992e7931 100644 --- a/Symbol Patterns/symbolpattern13.py +++ b/Symbol Patterns/symbolpattern13.py @@ -1,4 +1,4 @@ -[13:04, 23/01/2022] Mahak Garg: height = int(input()) +height = int(input()) for i in range(1, height+1):