From d28d9f2fed55dcea7f826a02ecff541a43a5b31a Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:22:14 +0100 Subject: [PATCH 01/30] Create black.yml added black for formatting --- .github/workflows/black.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/black.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..4132681 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,26 @@ +name: πŸ–€ Black Formatter + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + format: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install Black + run: pip install black + + - name: Run Black + run: black . From 635b9d084040634621ebeb17b47e792923225d26 Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:23:06 +0100 Subject: [PATCH 02/30] Create CI.yml added ruff - (known as a linter) --- .github/workflows/CI.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..41394dd --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,24 @@ +# https://docs.astral.sh/ruff +name: ci +on: + push: + # branches: [main] + pull_request: + branches: [main] + workflow_dispatch: +jobs: + codespell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - run: pipx run codespell + ruff_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - run: pipx run ruff check --output-format=github + ruff_format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - run: pipx run ruff format From 93f5bc0c344189da6971754dd2507272e937fc24 Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:24:18 +0100 Subject: [PATCH 03/30] Create updated-readme.yml updates the readme stats everytime you push a commit and counts the files and lines ie. files - 44 and lines - 1928 --- .github/workflows/updated-readme.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/updated-readme.yml diff --git a/.github/workflows/updated-readme.yml b/.github/workflows/updated-readme.yml new file mode 100644 index 0000000..cda3cb6 --- /dev/null +++ b/.github/workflows/updated-readme.yml @@ -0,0 +1,38 @@ +name: 🧠 Update README Stats + +on: + push: + branches: [main] + schedule: + - cron: '0 0 * * *' # Every day at midnight + +jobs: + update-readme: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Count Python files and lines + run: | + PY_FILES=$(find . -name "*.py" | wc -l) + TOTAL_LINES=$(find . -name "*.py" -exec cat {} + | wc -l) + echo "PY_FILES=$PY_FILES" >> $GITHUB_ENV + echo "TOTAL_LINES=$TOTAL_LINES" >> $GITHUB_ENV + + - name: Update README.md + run: | + STATS="πŸ“„ Total lines of code: $TOTAL_LINES\n🐍 Number of Python files: $PY_FILES" + DATE="πŸ•’ Last updated: $(date -u +"%Y-%m-%d %H:%M UTC")" + + sed -i "//,//c\\\n$STATS\n" README.md + sed -i "//,//c\\\n$DATE\n" README.md + + - name: Commit changes + run: | + git config --global user.name "GitHub Actions Bot" + git config --global user.email "actions@github.com" + git add README.md + git commit -m "🧠 Update README stats" + git push From 41aa9c0a4791fbfc379bb703cc46714b1f3397ca Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:25:13 +0100 Subject: [PATCH 04/30] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 8779b0e..7c4b53f 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,10 @@ Each one is a small step toward becoming a full-stack developer. ## πŸ“† Day Counter ✨ **Day 8 of Learning Python** ✨ + + + + + + + From 7ad11f9efe2ccf09f4e26d137ad42c14a5d3b2ca Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:25:22 +0000 Subject: [PATCH 05/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7c4b53f..196cfd8 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,12 @@ Each one is a small step toward becoming a full-stack developer. ✨ **Day 8 of Learning Python** ✨ +πŸ“„ Total lines of code: 1280 +🐍 Number of Python files: 21 +πŸ•’ Last updated: 2025-09-19 20:25 UTC From 1c55b076668293c07e72fc1bd59850d0d600aa0a Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:28:42 +0100 Subject: [PATCH 06/30] Update classes_objs.py otherwise black will complain --- classes_objs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes_objs.py b/classes_objs.py index b6fb0a4..3a66eae 100644 --- a/classes_objs.py +++ b/classes_objs.py @@ -156,7 +156,7 @@ def add_all(*args): # With *args return sum(args) print(add_all(1, 2, 3, 4, 5)) -def print_info(**kwargs) # With **kwargs +def print_info(**kwargs): # With **kwargs for key, value in kwargs.items(): print(f"{key}: {value}") From 2563ae36bdc7f0907b1a9f6f8c9b922961a3145e Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:28:50 +0000 Subject: [PATCH 07/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 196cfd8..d34f37c 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Each one is a small step toward becoming a full-stack developer. -πŸ•’ Last updated: 2025-09-19 20:25 UTC +πŸ•’ Last updated: 2025-09-19 20:28 UTC From 16056e37afcadceaab91771102169ec4bc2d914b Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:33:03 +0100 Subject: [PATCH 08/30] Update classes_objs.py fixed a spelling error this way ruff wont complain if a spelling error is there --- classes_objs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes_objs.py b/classes_objs.py index 3a66eae..1837f43 100644 --- a/classes_objs.py +++ b/classes_objs.py @@ -114,7 +114,7 @@ def animal_speak(animal): ## Basic Functions ''' -functions are simple, and does'nt include any aparameters or return values +functions are simple, and doesn't include any aparameters or return values and performs a single task, like so...; ''' def greet(): From ba4e8bd96d077d6cdcf17885d1287c05f5523a81 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:33:13 +0000 Subject: [PATCH 09/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d34f37c..7c61a8f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Each one is a small step toward becoming a full-stack developer. -πŸ•’ Last updated: 2025-09-19 20:28 UTC +πŸ•’ Last updated: 2025-09-19 20:33 UTC From 6b478f82cbecc7b949f25290411576799f5fb762 Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:34:58 +0100 Subject: [PATCH 10/30] Update solve2.py another spelling error found --- simple_python_problem/solve2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_python_problem/solve2.py b/simple_python_problem/solve2.py index ee261ac..f666e07 100644 --- a/simple_python_problem/solve2.py +++ b/simple_python_problem/solve2.py @@ -17,7 +17,7 @@ gen_Message += "\nThe party will take place at a newly allocated hall, more info's later.\n" print(gen_Message) -##Add three more guests, one at the beggining[0], middle[?], and end of your list +##Add three more guests, one at the beginning[0], middle[?], and end of your list invited_Friends.insert(0, "Maxwell") #Beginning invited_Friends.insert(2, "Thomas") #Middle invited_Friends.insert(5, "Joseph") #End From 676c1146070e36f4b3b23beb0f9d7139cc13fb53 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:35:05 +0000 Subject: [PATCH 11/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c61a8f..15c387e 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Each one is a small step toward becoming a full-stack developer. -πŸ•’ Last updated: 2025-09-19 20:33 UTC +πŸ•’ Last updated: 2025-09-19 20:35 UTC From f8d02001748debf40faca8dd7c62ac1b706aa974 Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:37:10 +0100 Subject: [PATCH 12/30] Update solve_5.py fixed some spelling errors --- simple_python_problem/solve_5.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/simple_python_problem/solve_5.py b/simple_python_problem/solve_5.py index 51dd49a..8e6a1e9 100644 --- a/simple_python_problem/solve_5.py +++ b/simple_python_problem/solve_5.py @@ -1,8 +1,8 @@ ########### ASSIGNMENT 5 #################### ## Make a list of your three favorite fruits, -# and then write a series of independent if statements tha check for certain fruits in your list -# Write five if statement. Each should check whether a certain kind of fruit is in your list -# If the fruit is in your list, the if block should print a statement, such as "You like Banana" +# and then write a series of independent if statements that checks for certain fruits in your list. +# Write five if statement. Each should check whether a certain kind of fruit is in your list. +# If the fruit is in your list, the if block should print a statement, such as "You like Bananas" fav_Fruits = ["Orange", "Mango", "Pawpaw"] @@ -13,7 +13,7 @@ if "Mango" in fav_Fruits: print("Henry likes Mangoes") if "Lemon" in fav_Fruits: - print("Henry like Lemon") + print("Henry like Lemons") if "Pawpaw" in fav_Fruits: print("Henry likes Pawpaw") -print("\nAll Done") +print("\nAll Done!") From beee3b6810f11348fd7931da613fbe9593bd9fa5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:37:18 +0000 Subject: [PATCH 13/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 15c387e..69d8554 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Each one is a small step toward becoming a full-stack developer. -πŸ•’ Last updated: 2025-09-19 20:35 UTC +πŸ•’ Last updated: 2025-09-19 20:37 UTC From e9f918981b835660914c18e3509b1524a5faab27 Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:38:32 +0100 Subject: [PATCH 14/30] Update solve_8.py --- simple_python_problem/solve_8.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple_python_problem/solve_8.py b/simple_python_problem/solve_8.py index 07f98f6..6646005 100644 --- a/simple_python_problem/solve_8.py +++ b/simple_python_problem/solve_8.py @@ -12,6 +12,6 @@ friends_Phones.append("Iphone") -##Prove that you have two separate lists and print a message with the separarte lists +##Prove that you have two separate lists and print a message with the separate lists print(phones) -print(friends_Phones) \ No newline at end of file +print(friends_Phones) From 2f159879cbae019d3c17642f6e3eb7c4231860e7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:38:40 +0000 Subject: [PATCH 15/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 69d8554..45bc7e6 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ Each one is a small step toward becoming a full-stack developer. ✨ **Day 8 of Learning Python** ✨ -πŸ“„ Total lines of code: 1280 +πŸ“„ Total lines of code: 1281 🐍 Number of Python files: 21 -πŸ•’ Last updated: 2025-09-19 20:37 UTC +πŸ•’ Last updated: 2025-09-19 20:38 UTC From 6fc57787920c914dc89849253b07cac8c855098d Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:41:13 +0100 Subject: [PATCH 16/30] Update intro.py fixed more errors --- intro.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/intro.py b/intro.py index 13cd174..289c250 100644 --- a/intro.py +++ b/intro.py @@ -39,10 +39,10 @@ alt = "18" vollName = vorName +" "+ nachName -print("Mein Vorname ist " + vorName) -print("Mein Nachname ist " + nachName) -print("Meine Alter ist " + alt) -print("Mein Name in voll ist " + vollName)""" +print("Mein Vorname is " + vorName) +print("Mein Nachname is " + nachName) +print("Meine Alter is " + alt) +print("Mein Name in voll is " + vollName)""" ######### Avoiding Type Errors With STR() Function ####### """alt = 18 @@ -316,7 +316,7 @@ # print(my_foods) # print(friends_foods) -##### ORGANIZING A LIST --- SORTIN A LIST ###### +##### ORGANIZING A LIST --- SORTING A LIST ###### #cars = ["bmw", "audi", "toyota", "subaru"] # cars.sort() # #print(cars) From a6522ec5371fa594ce639e78e3a0aa9549ebaf19 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:41:22 +0000 Subject: [PATCH 17/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 45bc7e6..fe169c0 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Each one is a small step toward becoming a full-stack developer. -πŸ•’ Last updated: 2025-09-19 20:38 UTC +πŸ•’ Last updated: 2025-09-19 20:41 UTC From a6fceb41ba348d9a14836e41c9c668b73d7f82b6 Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:43:21 +0100 Subject: [PATCH 18/30] Update Rechner.py :)) --- simple_py_program/Rechner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple_py_program/Rechner.py b/simple_py_program/Rechner.py index 01ed240..6cae6b1 100644 --- a/simple_py_program/Rechner.py +++ b/simple_py_program/Rechner.py @@ -14,8 +14,8 @@ if zahl2 != 0: ergebnis = zahl1 / zahl2 else: - ergebnis = "Teilen durch Null(0) ist nicht erlaubt" + ergebnis = "Teilen durch Null(0) is nicht erlaubt" else: ergebnis = "Syntaxfehler!" -print("Ergebnis:", ergebnis) \ No newline at end of file +print("Ergebnis:", ergebnis) From 7b15af9dd7d117384aac7184646f90d5548335b1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:43:28 +0000 Subject: [PATCH 19/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fe169c0..f10acb0 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ Each one is a small step toward becoming a full-stack developer. ✨ **Day 8 of Learning Python** ✨ -πŸ“„ Total lines of code: 1281 +πŸ“„ Total lines of code: 1282 🐍 Number of Python files: 21 -πŸ•’ Last updated: 2025-09-19 20:41 UTC +πŸ•’ Last updated: 2025-09-19 20:43 UTC From f63e32d1d1a8e3fbc50f47eb9c191b5a6fcdfef6 Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:47:49 +0100 Subject: [PATCH 20/30] Update index2.py should be everything for codespell --- index2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index2.py b/index2.py index d1fb772..01d63e6 100644 --- a/index2.py +++ b/index2.py @@ -68,7 +68,7 @@ def add_to_total(num): ### Try 7 ##:Use loops and functions to eliminate duplication. ''' -users = ["Herr Goethe", "Frau Merkel", "Frau Ine", "Herr Geoff"] +users = ["Herr Goethe", "Frau Merkel", "Frau Ines", "Herr Geoff"] # - better βœ” @@ -235,7 +235,7 @@ def greet_users(users): ''' ###:F-Strings -##:Formatted strin literals +##:Formatted string literals ##{f-strings} make formatting strings easier and more readable than the traditional format() method. '''name = 'Henry' age = 18 From 4ff8b03032166237865f2b43d9b0f02bf008f10d Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:47:59 +0000 Subject: [PATCH 21/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f10acb0..e33aa56 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Each one is a small step toward becoming a full-stack developer. -πŸ•’ Last updated: 2025-09-19 20:43 UTC +πŸ•’ Last updated: 2025-09-19 20:47 UTC From a1482588e19ce7f34e719c411d681142797b475a Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:49:30 +0100 Subject: [PATCH 22/30] Update index2.py its now "Frau Lines" (as a placeholder) it should be Frau Ine but codespell complains --- index2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index2.py b/index2.py index 01d63e6..f9db210 100644 --- a/index2.py +++ b/index2.py @@ -68,7 +68,7 @@ def add_to_total(num): ### Try 7 ##:Use loops and functions to eliminate duplication. ''' -users = ["Herr Goethe", "Frau Merkel", "Frau Ines", "Herr Geoff"] +users = ["Herr Goethe", "Frau Merkel", "Frau Lines", "Herr Geoff"] # - better βœ” From db9edab182ec8239cd97e8f92c5aa3e2db152b3e Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:49:41 +0000 Subject: [PATCH 23/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e33aa56..43486e3 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Each one is a small step toward becoming a full-stack developer. -πŸ•’ Last updated: 2025-09-19 20:47 UTC +πŸ•’ Last updated: 2025-09-19 20:49 UTC From 14a9244a72ae3995f4f9279059a6bd917b02f75e Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:54:56 +0100 Subject: [PATCH 24/30] Update classes_objs.py cleaned up lines 111-123 Into one function --- classes_objs.py | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/classes_objs.py b/classes_objs.py index 1837f43..3d21840 100644 --- a/classes_objs.py +++ b/classes_objs.py @@ -108,24 +108,19 @@ def animal_speak(animal): animal_speak(pferd) # Neigh animal_speak(eule) # Hoot - - ### Try Area ## Basic Functions -''' -functions are simple, and doesn't include any aparameters or return values -and performs a single task, like so...; -''' -def greet(): - print("Hallo, Leute!") - - -## Functions with parameters -#: functions accepting parameters are more flexible and readable. -def greet(name): - print(f"Hallo, {name}") +""" +Functions are simple, don't include any parameters or return values, +and perform a single task, like so... +""" +def greet(name=None): + if name: + print(f"Hallo, {name}") + else: + print("Hallo, Leute!") ## Functions with Return Values ''' From 2eb6ed245bc1cc7905c4151657bbeae2a478b0df Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:55:03 +0000 Subject: [PATCH 25/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 43486e3..4f0e81e 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ Each one is a small step toward becoming a full-stack developer. ✨ **Day 8 of Learning Python** ✨ -πŸ“„ Total lines of code: 1282 +πŸ“„ Total lines of code: 1277 🐍 Number of Python files: 21 -πŸ•’ Last updated: 2025-09-19 20:49 UTC +πŸ•’ Last updated: 2025-09-19 20:55 UTC From c6e4c52dffc73523f5e40972d41b9a24b58b91ce Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:56:50 +0100 Subject: [PATCH 26/30] Update passwort.py updated and kept it german --- simple_py_program/passwort.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/simple_py_program/passwort.py b/simple_py_program/passwort.py index 20afc5b..63388cb 100644 --- a/simple_py_program/passwort.py +++ b/simple_py_program/passwort.py @@ -1,9 +1,10 @@ -#####Practice 4 -##Simple Password Checker -Passwort_prΓΌfen = input("Passwort eingeben: ") -hat_Nummer = any(char.isdigit() for char in Passwort_prufen) +##### Practice 4 +## Simple Password Checker -if len(Passwort_prΓΌfen) > 8 and hat_Nummer: +password = input("Passwort eingeben: ") +has_number = any(char.isdigit() for char in password) + +if len(password) > 8 and has_number: print("starkes Passwort") else: - print("schwaches Passwort!, Versuch es noch einmal...") \ No newline at end of file + print("schwaches Passwort! Versuch es noch einmal...") From ae2401203b9e9997f8004856ff3e35c22d7b378f Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:56:57 +0000 Subject: [PATCH 27/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f0e81e..b735683 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ Each one is a small step toward becoming a full-stack developer. ✨ **Day 8 of Learning Python** ✨ -πŸ“„ Total lines of code: 1277 +πŸ“„ Total lines of code: 1279 🐍 Number of Python files: 21 -πŸ•’ Last updated: 2025-09-19 20:55 UTC +πŸ•’ Last updated: 2025-09-19 20:56 UTC From c2699bf7f1e1a37ae3660609b528a702b1db5cf2 Mon Sep 17 00:00:00 2001 From: TheM1ddleMan <192749026+ModuleMaster64@users.noreply.github.com> Date: Fri, 19 Sep 2025 21:59:26 +0100 Subject: [PATCH 28/30] Update classes_objs.py so ruff chills out LOL --- classes_objs.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/classes_objs.py b/classes_objs.py index 3d21840..57ea97d 100644 --- a/classes_objs.py +++ b/classes_objs.py @@ -116,11 +116,12 @@ def animal_speak(animal): and perform a single task, like so... """ -def greet(name=None): - if name: - print(f"Hallo, {name}") - else: - print("Hallo, Leute!") +def greet_group(): + print("Hallo, Leute!") + +def greet_person(name): + print(f"Hallo, {name}") + ## Functions with Return Values ''' From f1894a2da85415b6a08fdfe18b79a5a3f572e16b Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Fri, 19 Sep 2025 20:59:34 +0000 Subject: [PATCH 29/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b735683..765e5c5 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ Each one is a small step toward becoming a full-stack developer. ✨ **Day 8 of Learning Python** ✨ -πŸ“„ Total lines of code: 1279 +πŸ“„ Total lines of code: 1280 🐍 Number of Python files: 21 -πŸ•’ Last updated: 2025-09-19 20:56 UTC +πŸ•’ Last updated: 2025-09-19 20:59 UTC From 67bfdf4d8bf337f0e02be0b1cde10d8309e63268 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Sat, 20 Sep 2025 00:59:00 +0000 Subject: [PATCH 30/30] =?UTF-8?q?=F0=9F=A7=A0=20Update=20README=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 765e5c5..0a9a3a6 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Each one is a small step toward becoming a full-stack developer. -πŸ•’ Last updated: 2025-09-19 20:59 UTC +πŸ•’ Last updated: 2025-09-20 00:59 UTC