From cb8bc81eb54218aae5fe71851f4da251ec78bb97 Mon Sep 17 00:00:00 2001 From: basmalanasser Date: Fri, 19 Jul 2024 15:01:13 +0300 Subject: [PATCH 1/4] fixing bugsss --- Buggggggs.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Buggggggs.py b/Buggggggs.py index f02d131..e739089 100644 --- a/Buggggggs.py +++ b/Buggggggs.py @@ -1,10 +1,10 @@ # Fibbonacci sequence calculation a, b, n = 0, 1, 10 fibonacci = [] -for i in range(n) +for i in range(n): fibonacci.append(a) a, b = b, a + b -pritn(f"Fibbonacci sequence of {n} numbers: {fibonacci}") +print(f"Fibbonacci sequence of {n} numbers: {fibonacci}") # Find minimum and maximum in a list numbers = [3, 5, 1, 10, 2, 7, 6, 4, 8, 9] @@ -19,7 +19,7 @@ # Basic arithmetic calculations x = 10 -y = 0 +y = 2 sum = x + y difference = x - y product = x * y @@ -41,7 +41,7 @@ original_string = "Hello, World!" reversed_string = "" -for i in range(len(original_string), 0, -1): +for i in range(len(original_string),0, -1): reversed_string += original_string[i] print("Original string:", original_string) print("Reversed string:", reversed_string) @@ -58,7 +58,7 @@ vowels = "aeiou" vowel_count = 0 for char in string: - if char in vowel: + if char in vowels: vowel_count += 1 print(f"Number of vowels in the string: {vowel_count}") @@ -79,7 +79,7 @@ sum_elements = 0 for num in number: if not num > 0: - sum_elements += num + sum_elements += num print(f"Sum of elements: {sum_elements}") # Factorial calculation @@ -96,9 +96,9 @@ # Checking if a number is even or odd number = 15 -if number%2 = 0: +if number%2==0: print(f"{number} is even") -else +else: print(f"{number} is odd") @@ -152,7 +152,7 @@ # Check if a number is a perfect square num = 25 -if int(num 0.5) * int(num 0.5) = num: +if int(num * 0.5) * int(num * 0.5) == num: print(f"{num} is a perfect square") else: print(f"{num} is not a perfect square") From 3bc5ba5651b2de054377ed52c18e719d8dff8739 Mon Sep 17 00:00:00 2001 From: basmalanasser Date: Tue, 23 Jul 2024 03:42:56 +0300 Subject: [PATCH 2/4] trial commit --- git trial.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 git trial.py diff --git a/git trial.py b/git trial.py new file mode 100644 index 0000000..e69de29 From c61362b888d222b4a56c62314c5383904696437b Mon Sep 17 00:00:00 2001 From: basmalanasser Date: Tue, 23 Jul 2024 13:30:38 +0300 Subject: [PATCH 3/4] created git trial.py --- git trial.py | 1 + 1 file changed, 1 insertion(+) diff --git a/git trial.py b/git trial.py index e69de29..2832557 100644 --- a/git trial.py +++ b/git trial.py @@ -0,0 +1 @@ +print("basmala") \ No newline at end of file From b69271dff55116594c4d2182d144a567a094b56f Mon Sep 17 00:00:00 2001 From: basmalanasser Date: Tue, 23 Jul 2024 13:34:53 +0300 Subject: [PATCH 4/4] created git.py --- git.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 git.py diff --git a/git.py b/git.py new file mode 100644 index 0000000..2832557 --- /dev/null +++ b/git.py @@ -0,0 +1 @@ +print("basmala") \ No newline at end of file