From 6759655a7aec31e97930299936d6215bb6ea31b3 Mon Sep 17 00:00:00 2001 From: ghadi Date: Tue, 17 Feb 2026 17:23:28 +0300 Subject: [PATCH 1/4] wrote the code for 1st python lab --- first_py_lab.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 first_py_lab.py diff --git a/first_py_lab.py b/first_py_lab.py new file mode 100644 index 0000000..3670186 --- /dev/null +++ b/first_py_lab.py @@ -0,0 +1,20 @@ + +price:float = 5.99 +quantity:int = 4 +tax_rate:float =0.075 + + +subtotal= price*quantity +tax = subtotal*tax_rate +total = subtotal+tax + + +print("Product Price:",price) +print("Quantity:",quantity) +print("Tax rate:",tax_rate) + +print(f"Juice price: ${subtotal}") +print("Tax:",tax) +print("Total:",total) + + From 6165de3bcbd7c8c126910737e001834323e544dc Mon Sep 17 00:00:00 2001 From: ghadi Date: Tue, 17 Feb 2026 17:25:14 +0300 Subject: [PATCH 2/4] completed the bounc lab --- Bounc_lab_01.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Bounc_lab_01.py diff --git a/Bounc_lab_01.py b/Bounc_lab_01.py new file mode 100644 index 0000000..e3d3142 --- /dev/null +++ b/Bounc_lab_01.py @@ -0,0 +1,21 @@ + +congratulation_letter:str = "We are pleased to offer you a postision as a Full-Stack Lead. To find the postision details and the location please find the attachment" +one_word_from_Congletter:str = "postision" + + +print(len(congratulation_letter)) +print(congratulation_letter[0]) +print(congratulation_letter.count("postision")) +print(congratulation_letter.upper()) +print(congratulation_letter.lower()) +print(congratulation_letter.replace("Lead", "Devoloper")) +print(congratulation_letter[-1]) + + + + + +''' +I used W3school to help me finidng the len() and replce() functions, I asked Gemini to only explain question one, +and I hardly emphasized that it should'nt show me any code. +''' \ No newline at end of file From b28dca47e1d1648c01563c2b86f2218d33c387f6 Mon Sep 17 00:00:00 2001 From: ghadi Date: Thu, 19 Feb 2026 06:49:12 +0300 Subject: [PATCH 3/4] corrected the file name --- Bouns_lab_01.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Bouns_lab_01.py diff --git a/Bouns_lab_01.py b/Bouns_lab_01.py new file mode 100644 index 0000000..e3d3142 --- /dev/null +++ b/Bouns_lab_01.py @@ -0,0 +1,21 @@ + +congratulation_letter:str = "We are pleased to offer you a postision as a Full-Stack Lead. To find the postision details and the location please find the attachment" +one_word_from_Congletter:str = "postision" + + +print(len(congratulation_letter)) +print(congratulation_letter[0]) +print(congratulation_letter.count("postision")) +print(congratulation_letter.upper()) +print(congratulation_letter.lower()) +print(congratulation_letter.replace("Lead", "Devoloper")) +print(congratulation_letter[-1]) + + + + + +''' +I used W3school to help me finidng the len() and replce() functions, I asked Gemini to only explain question one, +and I hardly emphasized that it should'nt show me any code. +''' \ No newline at end of file From 6c92596a560e5807bea00a76fdeda8a3aad76df0 Mon Sep 17 00:00:00 2001 From: ghadi Date: Thu, 19 Feb 2026 06:50:35 +0300 Subject: [PATCH 4/4] deleted the old file --- Bounc_lab_01.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 Bounc_lab_01.py diff --git a/Bounc_lab_01.py b/Bounc_lab_01.py deleted file mode 100644 index e3d3142..0000000 --- a/Bounc_lab_01.py +++ /dev/null @@ -1,21 +0,0 @@ - -congratulation_letter:str = "We are pleased to offer you a postision as a Full-Stack Lead. To find the postision details and the location please find the attachment" -one_word_from_Congletter:str = "postision" - - -print(len(congratulation_letter)) -print(congratulation_letter[0]) -print(congratulation_letter.count("postision")) -print(congratulation_letter.upper()) -print(congratulation_letter.lower()) -print(congratulation_letter.replace("Lead", "Devoloper")) -print(congratulation_letter[-1]) - - - - - -''' -I used W3school to help me finidng the len() and replce() functions, I asked Gemini to only explain question one, -and I hardly emphasized that it should'nt show me any code. -''' \ No newline at end of file