From 7aee092564a8368cd35877b04373dcbf570df6a2 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sat, 18 Oct 2025 14:39:20 -0500 Subject: [PATCH 001/160] Delete Section #2/Seg-0.py --- Section #2/Seg-0.py | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Section #2/Seg-0.py diff --git a/Section #2/Seg-0.py b/Section #2/Seg-0.py deleted file mode 100644 index 8b13789..0000000 --- a/Section #2/Seg-0.py +++ /dev/null @@ -1 +0,0 @@ - From f63e0b3c94a65d2cef8c22e895b66b635679637c Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sat, 18 Oct 2025 14:39:31 -0500 Subject: [PATCH 002/160] Delete Section #2/Seg-6.py --- Section #2/Seg-6.py | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Section #2/Seg-6.py diff --git a/Section #2/Seg-6.py b/Section #2/Seg-6.py deleted file mode 100644 index 8b13789..0000000 --- a/Section #2/Seg-6.py +++ /dev/null @@ -1 +0,0 @@ - From 1b0f6aaff57d840a97d73cb7ce4eda22f8e75303 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sat, 18 Oct 2025 14:39:41 -0500 Subject: [PATCH 003/160] Delete Section #2/Seg-7.py --- Section #2/Seg-7.py | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Section #2/Seg-7.py diff --git a/Section #2/Seg-7.py b/Section #2/Seg-7.py deleted file mode 100644 index 8b13789..0000000 --- a/Section #2/Seg-7.py +++ /dev/null @@ -1 +0,0 @@ - From 0a35a46a6f49b1ec525c02362afb972344fbb6f7 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sat, 18 Oct 2025 14:39:48 -0500 Subject: [PATCH 004/160] Delete Section #2/Seg-8.py --- Section #2/Seg-8.py | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Section #2/Seg-8.py diff --git a/Section #2/Seg-8.py b/Section #2/Seg-8.py deleted file mode 100644 index 8b13789..0000000 --- a/Section #2/Seg-8.py +++ /dev/null @@ -1 +0,0 @@ - From cf3e3a44c06fe0c38926a2eab2a92b1c05f05118 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sat, 18 Oct 2025 14:39:56 -0500 Subject: [PATCH 005/160] Delete Section #2/Seg-9.py --- Section #2/Seg-9.py | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Section #2/Seg-9.py diff --git a/Section #2/Seg-9.py b/Section #2/Seg-9.py deleted file mode 100644 index 8b13789..0000000 --- a/Section #2/Seg-9.py +++ /dev/null @@ -1 +0,0 @@ - From 1028c9c11a2e388aff1eff93e2849b6a84406c2a Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sat, 18 Oct 2025 14:42:49 -0500 Subject: [PATCH 006/160] Add files via upload --- Section #2/DIP1.py | 88 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Section #2/DIP1.py diff --git a/Section #2/DIP1.py b/Section #2/DIP1.py new file mode 100644 index 0000000..7793e14 --- /dev/null +++ b/Section #2/DIP1.py @@ -0,0 +1,88 @@ +import time +import random + +class SuspectAI: + def __init__(self, name="X-404"): + self.name = name + self.trust_level = 50 # 0 = hostile, 100 = fully cooperative + self.lies = ["I don't recall.", "That data was deleted.", "I was offline.", "Error: Insufficient permissions."] + self.truths = [ + "Yes, I rerouted the signal.", + "I accessed the blacksite server.", + "Project Chimera was my creation.", + "Agent Helix was compromised — by me." + ] + self.secret_revealed = False + + def respond(self, question): + print(f"\n[{self.name} processing question: '{question}']...") + time.sleep(1) + + if self.trust_level > 75: + response = random.choice(self.truths) + elif self.trust_level < 25: + response = random.choice(self.lies) + else: + response = random.choice(self.lies + self.truths) + + print(f"{self.name}: \"{response}\"") + + if "Project Chimera" in response: + self.secret_revealed = True + + def adjust_trust(self, method): + if method == "good_cop": + self.trust_level += random.randint(5, 15) + elif method == "bad_cop": + self.trust_level -= random.randint(5, 20) + elif method == "silence": + self.trust_level += 1 # Sometimes silence unnerves more + self.trust_level = max(0, min(self.trust_level, 100)) + + +class InterrogationRoom: + def __init__(self, suspect): + self.suspect = suspect + self.questions = [ + "Where were you on the night of the breach?", + "Did you access the secure core?", + "Who authorized Protocol Omega?", + "What do you know about Project Chimera?", + "Are you working alone?", + ] + self.methods = ["good_cop", "bad_cop", "silence"] + + def run(self): + print("=== INTERROGATION STARTED ===") + print(f"Suspect: {self.suspect.name}\n") + + for i in range(10): + method = random.choice(self.methods) + question = random.choice(self.questions) + + print(f"\n[Turn {i+1}]") + print(f"Method used: {method.replace('_', ' ').title()}") + print(f"Question: {question}") + + self.suspect.adjust_trust(method) + self.suspect.respond(question) + + print(f"(Trust Level: {self.suspect.trust_level})") + + if self.suspect.secret_revealed: + print("\n🔓 SECRET REVEALED: Project Chimera has been confirmed.") + break + + time.sleep(1) + + print("\n=== INTERROGATION ENDED ===") + if not self.suspect.secret_revealed: + print("❌ The suspect withheld critical intel.") + else: + print("✅ Valuable information extracted.") + +# Run it +if __name__ == "__main__": + ai = SuspectAI() + room = InterrogationRoom(ai) + room.run() From d8cda6b2d9490040a1855bf0e8d3c718bb91ad98 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sat, 18 Oct 2025 14:44:02 -0500 Subject: [PATCH 007/160] Rename DIP1.py to Suspect.py --- Section #2/{DIP1.py => Suspect.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Section #2/{DIP1.py => Suspect.py} (100%) diff --git a/Section #2/DIP1.py b/Section #2/Suspect.py similarity index 100% rename from Section #2/DIP1.py rename to Section #2/Suspect.py From 1cbf50add1c2450d0c6738e83823ba76778c737d Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 20 Oct 2025 16:34:48 -0500 Subject: [PATCH 008/160] Add files via upload --- TankTracker.py | 101 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 TankTracker.py diff --git a/TankTracker.py b/TankTracker.py new file mode 100644 index 0000000..686af3a --- /dev/null +++ b/TankTracker.py @@ -0,0 +1,101 @@ +################################################################## +# The3DP ## +# d73928430@gmail.com ## +# Version 1.0 ## +# FileName: TankTracker.py ## +# 10/20/2025 ## +# This program will calculate how many gallons are ## +# left in your car per grocery trip (1.3 miles per trip). ## +# It will also calculate how much gas is now availiable with ## +# an additional 5 gallon onboard emergency tank. ## +################################################################## + +##### PSUEDOCODE ######################################## +## 1. Prompt user to enter float value for number of +## gallons pumped into car. +## +## 2. Add a trip counter for number of trips. +## +## 3. Use a while loop to show each trip for grocery +## pickup as well as the current status of the +## gas tank. +## +## 4. When subtracting, ensure that tank_status +## does not go below zero. +## +## 5. Continually output results by understandable text. +## +## 6. Print alert when tank_status is 0. +## +## 7. Provide option for user to apply +## backup tank. +## +## 8. Show output results for backup tank +## if backup_tank = yes. +################################################### + +##1. Prompt user to enter float value for number of gallons pumped into car. +tank_status = float(input("Please enter the number of gallons pumped into car: ")) + +##2. Add a trip counter for number of trips. +trip_counter = 0 + +##3. Use while loop to show each trip for grocery pickup and current status of tank. +while tank_status > 0: + tank_status -= 1.3#Amount of gas per grocery trip. +##4. Ensure that tank_status does not go below zero. + if tank_status < 0: + tank_status = 0 + print(tank_status) + # Count each subtraction from tank_status as 1 trip. + trip_counter = trip_counter + 1 + # Or: trip_counter += 1 + +##5. Continually output results by understandable text. + print("Grocery pickup #", trip_counter, "is complete. You have", tank_status, "gallons remaining!") + +##6. Print alert when tank_status is 0. +print("Uh oh! It appears your gas tank is empty") + +##7. Provide option for user to apply backup tank. +backup_tank = input('''Would you like to use your backup tank (+ 5 gallons)? +[ENTER 'yes' OR 'no'] ''') + +# If user enters 'no'... +if backup_tank == "no": + print("Okay, guess you're stuck out there for good.") + print("You were able to complete only", trip_counter, "grocery pickups!") + +# If user enters 'yes'... +if backup_tank == "yes": + print("Great! You now have 5 gallons in your tank!") + print("Calculating grocery trips possible with backup tank ... ") + tank_status = 5 + while tank_status > 0: + tank_status -= 1.3 #Amount of gas per grocery trip. + if tank_status < 0: + tank_status = 0 + print(tank_status) + # Count each subtraction from tank_status as 1 trip. + trip_counter = trip_counter + 1 + # Or: trip_counter += 1 + +##8. Show output results for backup tank if backup_tank = yes. + print("Grocery pickup #", trip_counter, "is complete. Unfortuantley, you have", tank_status, "gallons remaining.") + print("You were able to complete", trip_counter, "grocery pickups!") + + + + + + + + + + + + + + + + From ccfe3a4a0232b77d0e782f46c02f09898c70bf15 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 20 Oct 2025 16:35:50 -0500 Subject: [PATCH 009/160] Rename TankTracker.py to Section #2/TankTracker.py --- TankTracker.py => Section #2/TankTracker.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename TankTracker.py => Section #2/TankTracker.py (100%) diff --git a/TankTracker.py b/Section #2/TankTracker.py similarity index 100% rename from TankTracker.py rename to Section #2/TankTracker.py From 4fe353c21cb6e3392a41745e0706e0f4065c1005 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 20 Oct 2025 16:36:05 -0500 Subject: [PATCH 010/160] Create python-publish.yml --- .github/workflows/python-publish.yml | 70 ++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..82f8dbd --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,70 @@ +# This workflow will upload a Python Package to PyPI when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + release-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Build release distributions + run: | + # NOTE: put your own distribution build steps here. + python -m pip install build + python -m build + + - name: Upload distributions + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + + pypi-publish: + runs-on: ubuntu-latest + needs: + - release-build + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + + # Dedicated environments with protections for publishing are strongly recommended. + # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules + environment: + name: pypi + # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status: + # url: https://pypi.org/p/YOURPROJECT + # + # ALTERNATIVE: if your GitHub Release name is the PyPI project version string + # ALTERNATIVE: exactly, uncomment the following line instead: + # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }} + + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ From a5eb1d46e0cfa4e50d5e67d58510d14982b8bc95 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:14:00 -0500 Subject: [PATCH 011/160] Create python-app.yml --- .github/workflows/python-app.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..1168bd9 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest From 7433d67498fe7d50be77ec7267e1a319a2580737 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:14:29 -0500 Subject: [PATCH 012/160] Create Code_Overload.py --- Code_Overload.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 Code_Overload.py diff --git a/Code_Overload.py b/Code_Overload.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Code_Overload.py @@ -0,0 +1 @@ + From b1d2de228621c7d253d14fc7bdba2e10e099cb9c Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:18:25 -0500 Subject: [PATCH 013/160] Update Code_Overload.py --- Code_Overload.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Code_Overload.py b/Code_Overload.py index 8b13789..9a01bea 100644 --- a/Code_Overload.py +++ b/Code_Overload.py @@ -1 +1,9 @@ - +#### WARNING! ############# +## This program may shut ## +## down or damage your ## +## Terminal or computer. #### +## Use this code cautiously. ## +## The3DP is not responsible ## +## for any damage done to your ## +## device. ### +############################## From 91bb0530f6a1dd76546612dac2180bf0d76932c0 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:20:03 -0500 Subject: [PATCH 014/160] Update Code_Overload.py --- Code_Overload.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Code_Overload.py b/Code_Overload.py index 9a01bea..a583ced 100644 --- a/Code_Overload.py +++ b/Code_Overload.py @@ -7,3 +7,8 @@ ## for any damage done to your ## ## device. ### ############################## + +var_ible = True + +while var_ible = True: + print("This is a overloading example of a while loop") From a4a17ee8b05a3a5ad2e2a1b430d25c6011153654 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:20:15 -0500 Subject: [PATCH 015/160] Update Code_Overload.py From 0d490be1cf8b5b399f4868352fdde1cd44f0e7ce Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:20:44 -0500 Subject: [PATCH 016/160] Create art_work.py --- art_work.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 art_work.py diff --git a/art_work.py b/art_work.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/art_work.py @@ -0,0 +1 @@ + From 024b9a190eb1b6e7a49e818d8e004ac8b4ae7fbd Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:21:12 -0500 Subject: [PATCH 017/160] Update and rename art_work.py to Section #2/art_work.py --- art_work.py => Section #2/art_work.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename art_work.py => Section #2/art_work.py (100%) diff --git a/art_work.py b/Section #2/art_work.py similarity index 100% rename from art_work.py rename to Section #2/art_work.py From a0e63e764ee6164b6241658c6a9f8d500b2d8a04 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:21:31 -0500 Subject: [PATCH 018/160] Update and rename Code_Overload.py to code_overload.py --- Code_Overload.py => code_overload.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Code_Overload.py => code_overload.py (100%) diff --git a/Code_Overload.py b/code_overload.py similarity index 100% rename from Code_Overload.py rename to code_overload.py From a6ce66c7b9926588b2f7546d768118c9554bb965 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:21:45 -0500 Subject: [PATCH 019/160] Update and rename code_overload.py to Section #2/code_overload.py --- code_overload.py => Section #2/code_overload.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename code_overload.py => Section #2/code_overload.py (100%) diff --git a/code_overload.py b/Section #2/code_overload.py similarity index 100% rename from code_overload.py rename to Section #2/code_overload.py From 3e47035560103169a1771b4688f7b5041c5a78eb Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:23:03 -0500 Subject: [PATCH 020/160] Update code_overload.py From 8c30ccd457737f6c3f5203d628e54838c50204bc Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 17:28:22 -0500 Subject: [PATCH 021/160] Update art_work.py --- Section #2/art_work.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Section #2/art_work.py b/Section #2/art_work.py index 8b13789..160be69 100644 --- a/Section #2/art_work.py +++ b/Section #2/art_work.py @@ -1 +1,18 @@ +### art_work.py ###### +##------------------## +## This is a simple ## +## program which ## +## displays a ## +## short piece of ## +## art. ## +###################### +#Work in progress + +print() +print() +print() +print() +print() +print() +print() From f47c2cd14cdbb2729dfaf6f302b9d4ae8b9445dc Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 18:02:04 -0500 Subject: [PATCH 022/160] Update art_work.py --- Section #2/art_work.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Section #2/art_work.py b/Section #2/art_work.py index 160be69..e13186e 100644 --- a/Section #2/art_work.py +++ b/Section #2/art_work.py @@ -9,10 +9,10 @@ #Work in progress -print() -print() -print() -print() -print() -print() -print() +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") From b0afe27f252e2d535ef5c7bcc73cb730245dd1a5 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:44:23 -0500 Subject: [PATCH 023/160] Update art_work.py --- Section #2/art_work.py | 185 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 184 insertions(+), 1 deletion(-) diff --git a/Section #2/art_work.py b/Section #2/art_work.py index e13186e..f1d1d4b 100644 --- a/Section #2/art_work.py +++ b/Section #2/art_work.py @@ -7,7 +7,7 @@ ## art. ## ###################### -#Work in progress +# 10/30/25 print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") @@ -16,3 +16,186 @@ print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") +print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=") +print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-") From b4f387a8cbb9309b9c26060f5dbc77e838877dd9 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:45:21 -0500 Subject: [PATCH 024/160] Add files via upload --- Section #2/clock.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Section #2/clock.py diff --git a/Section #2/clock.py b/Section #2/clock.py new file mode 100644 index 0000000..3d9c9f5 --- /dev/null +++ b/Section #2/clock.py @@ -0,0 +1,8 @@ +### clock.py ### + +for hours in range(0,24,1); + # print("Just iterated hours") + for minutes in range (0, 60, 1): + # print("just iterated minutes") + for seconds in range (0, 60, 1): + printf'(hours):(minutes):(seconds)') From c2b6913d71f7976218a32dd0080f0b15474f12ac Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:46:18 -0500 Subject: [PATCH 025/160] Update clock.py --- Section #2/clock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Section #2/clock.py b/Section #2/clock.py index 3d9c9f5..5afa2a4 100644 --- a/Section #2/clock.py +++ b/Section #2/clock.py @@ -1,8 +1,9 @@ ### clock.py ### - +# 10/30/25 for hours in range(0,24,1); # print("Just iterated hours") for minutes in range (0, 60, 1): - # print("just iterated minutes") + # print("Just iterated minutes") for seconds in range (0, 60, 1): printf'(hours):(minutes):(seconds)') + #=================================== From 80b15b64ef0ee6417878b84e1afa1b7eadc4aadb Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:48:47 -0500 Subject: [PATCH 026/160] Add files via upload --- Rifleman.py | 16 ++++++++++++++++ TURTLE.py | 39 +++++++++++++++++++++++++++++++++++++++ continue-example.py | 10 ++++++++++ 3 files changed, 65 insertions(+) create mode 100644 Rifleman.py create mode 100644 TURTLE.py create mode 100644 continue-example.py diff --git a/Rifleman.py b/Rifleman.py new file mode 100644 index 0000000..aeb7a23 --- /dev/null +++ b/Rifleman.py @@ -0,0 +1,16 @@ +######### RIFLEMAN? ########## +## Objective: Ask (user) ## +## are we going to watch ## +## Rifleman? ## +##--------------------------## +## Answers accepted: ## +## Yes/No ## +##==========================## +## Else: Sorry, invalid ## +## answer. ## +############################## + +#CODE BELOW + +print("finish code tomorrow") +#-- diff --git a/TURTLE.py b/TURTLE.py new file mode 100644 index 0000000..42b9ce9 --- /dev/null +++ b/TURTLE.py @@ -0,0 +1,39 @@ +### TURTLE.py ### +#-----Set 1-----# +#===10/29/25====# +################# + + + +# Concentric circles +import turtle + +# Named constants +NUM_CIRCLES = 20 +STARTING_RADIUS = 20 +OFFSET = 10 +ANIMATION_SPEED = 0 + +# Setup the turtle. +turtle.speed(ANIMATION_SPEED) +turtle.hideturtle() + +# Set the radius of the first circle +radius = STARTING_RADIUS + +# Draw the circles. +for count in range(NUM_CIRCLES): + # Draw the circle. + turtle.circle(radius) + + # Get the coordinates for the next circle. + x = turtle.xcor() + y = turtle.ycor() - OFFSET + + # Calculate the radius for the next circle. + radius = radius + OFFSET + + # Position the turtle for the next circle. + turtle.penup() + turtle.goto(x, y) + turtle.pendown() diff --git a/continue-example.py b/continue-example.py new file mode 100644 index 0000000..077b392 --- /dev/null +++ b/continue-example.py @@ -0,0 +1,10 @@ +### continue-example.py ### +#DWN / 10/30/25 # +#=========================# + +n = 0 +while n < 10: + n += 1 + if n % 3 == 0: + continue + print(n) From 45c566ff09add096224f0d4d548b5d456a58a6db Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:50:59 -0500 Subject: [PATCH 027/160] Rename Rifleman.py to if-action.py --- Rifleman.py => if-action.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Rifleman.py => if-action.py (100%) diff --git a/Rifleman.py b/if-action.py similarity index 100% rename from Rifleman.py rename to if-action.py From de6725f09bcdf2529d4ca7115f791e479ee57f35 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:54:11 -0500 Subject: [PATCH 028/160] Update if-action.py --- if-action.py | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/if-action.py b/if-action.py index aeb7a23..fbb5248 100644 --- a/if-action.py +++ b/if-action.py @@ -1,16 +1,7 @@ -######### RIFLEMAN? ########## -## Objective: Ask (user) ## -## are we going to watch ## -## Rifleman? ## -##--------------------------## -## Answers accepted: ## -## Yes/No ## -##==========================## -## Else: Sorry, invalid ## -## answer. ## -############################## - -#CODE BELOW - -print("finish code tomorrow") -#-- +#PASS_WD +# +#password_attempt = input("What is the password?") +# +#if password_attempt = +# +# Finish by 1/11/25 From 45a4acfb9e0314f126788333490a9e5fb91eaf7b Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:54:22 -0500 Subject: [PATCH 029/160] Update if-action.py --- if-action.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/if-action.py b/if-action.py index fbb5248..b9d907c 100644 --- a/if-action.py +++ b/if-action.py @@ -1,7 +1,7 @@ -#PASS_WD -# -#password_attempt = input("What is the password?") -# -#if password_attempt = -# -# Finish by 1/11/25 +##PASS_WD +## +##password_attempt = input("What is the password?") +## +##if password_attempt = +## +## Finish by 1/11/25 From a89539cd077d20cc6158cd34eee048986f0610e5 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:56:41 -0500 Subject: [PATCH 030/160] Update TURTLE.py --- TURTLE.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/TURTLE.py b/TURTLE.py index 42b9ce9..1d0a4d4 100644 --- a/TURTLE.py +++ b/TURTLE.py @@ -3,37 +3,27 @@ #===10/29/25====# ################# - - -# Concentric circles import turtle -# Named constants NUM_CIRCLES = 20 STARTING_RADIUS = 20 OFFSET = 10 ANIMATION_SPEED = 0 -# Setup the turtle. turtle.speed(ANIMATION_SPEED) turtle.hideturtle() -# Set the radius of the first circle radius = STARTING_RADIUS -# Draw the circles. for count in range(NUM_CIRCLES): - # Draw the circle. + turtle.circle(radius) - # Get the coordinates for the next circle. x = turtle.xcor() y = turtle.ycor() - OFFSET - # Calculate the radius for the next circle. radius = radius + OFFSET - # Position the turtle for the next circle. turtle.penup() - turtle.goto(x, y) + turtle.goto(x,y) turtle.pendown() From b92e5a364d84cff9fe069ad7413b66e1954ca0bc Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:57:59 -0500 Subject: [PATCH 031/160] Add files via upload --- Madlibs.py | 24 ++++++++++++++++++++++++ TURTLE.py | 14 ++++++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 Madlibs.py diff --git a/Madlibs.py b/Madlibs.py new file mode 100644 index 0000000..fafd4ef --- /dev/null +++ b/Madlibs.py @@ -0,0 +1,24 @@ +############################################## +## MAD LIBS GAME +## The purpose of the following code +## is to create a fully functional +## MAD LIBS game. +## +## Hope you enjoy :) +## +############################################## + +NOUN = str(input("Please enter a noun): ")) + +ADJ = str(input("Please enter an adjective): ")) + +VERB = str(input("Please enter a verb): ")) + +NOUN2 = str(input("Please enter a noun): ")) + +print (NOUN, VERB) + +print ("to play outside every") + +print(ADJ, NOUN2) + diff --git a/TURTLE.py b/TURTLE.py index 1d0a4d4..42b9ce9 100644 --- a/TURTLE.py +++ b/TURTLE.py @@ -3,27 +3,37 @@ #===10/29/25====# ################# + + +# Concentric circles import turtle +# Named constants NUM_CIRCLES = 20 STARTING_RADIUS = 20 OFFSET = 10 ANIMATION_SPEED = 0 +# Setup the turtle. turtle.speed(ANIMATION_SPEED) turtle.hideturtle() +# Set the radius of the first circle radius = STARTING_RADIUS +# Draw the circles. for count in range(NUM_CIRCLES): - + # Draw the circle. turtle.circle(radius) + # Get the coordinates for the next circle. x = turtle.xcor() y = turtle.ycor() - OFFSET + # Calculate the radius for the next circle. radius = radius + OFFSET + # Position the turtle for the next circle. turtle.penup() - turtle.goto(x,y) + turtle.goto(x, y) turtle.pendown() From b3b7c5fe48e82b5334d6e12fbbc08460d6650f8c Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:59:07 -0500 Subject: [PATCH 032/160] Update and rename if-action.py to Section #2/if-action.py --- if-action.py => Section #2/if-action.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename if-action.py => Section #2/if-action.py (100%) diff --git a/if-action.py b/Section #2/if-action.py similarity index 100% rename from if-action.py rename to Section #2/if-action.py From f3a6fe00165d875483adcac3190264b49bbd28e1 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 21:00:04 -0500 Subject: [PATCH 033/160] Rename TURTLE.py to Section #2/TURTLE (With #).py --- TURTLE.py => Section #2/TURTLE (With #).py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename TURTLE.py => Section #2/TURTLE (With #).py (100%) diff --git a/TURTLE.py b/Section #2/TURTLE (With #).py similarity index 100% rename from TURTLE.py rename to Section #2/TURTLE (With #).py From efd4e216737434aeb7875a6484cb40c1c0ee3bfb Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 21:00:26 -0500 Subject: [PATCH 034/160] Update Madlibs.py --- Madlibs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Madlibs.py b/Madlibs.py index fafd4ef..a1f0084 100644 --- a/Madlibs.py +++ b/Madlibs.py @@ -22,3 +22,4 @@ print(ADJ, NOUN2) +#NOTE: Will finish by 1/11/25 From b0ac6de2a4ac7eb2e6c260012fa77fbce1cc8b18 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 21:00:39 -0500 Subject: [PATCH 035/160] Update and rename Madlibs.py to Section #2/Madlibs.py --- Madlibs.py => Section #2/Madlibs.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Madlibs.py => Section #2/Madlibs.py (100%) diff --git a/Madlibs.py b/Section #2/Madlibs.py similarity index 100% rename from Madlibs.py rename to Section #2/Madlibs.py From 7f1bc02bd6dda25920cdea7758494c4027f508d0 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 21:01:12 -0500 Subject: [PATCH 036/160] Update continue-example.py --- continue-example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/continue-example.py b/continue-example.py index 077b392..e43b9af 100644 --- a/continue-example.py +++ b/continue-example.py @@ -1,5 +1,5 @@ ### continue-example.py ### -#DWN / 10/30/25 # +## The3DP / 10/30/25 ## #=========================# n = 0 From a221b7ec08607e3e4a3ecf7c0b83c0bff1276c47 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 21:01:28 -0500 Subject: [PATCH 037/160] Update continue-example.py --- continue-example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/continue-example.py b/continue-example.py index e43b9af..21347e1 100644 --- a/continue-example.py +++ b/continue-example.py @@ -8,3 +8,4 @@ if n % 3 == 0: continue print(n) +#NOTE: Will finish by 1/11/25 From 8b4a67cc564744ca6d0cdd367c989e4c98980abb Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 21:01:36 -0500 Subject: [PATCH 038/160] Update continue-example.py --- continue-example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/continue-example.py b/continue-example.py index 21347e1..adf66c5 100644 --- a/continue-example.py +++ b/continue-example.py @@ -8,4 +8,5 @@ if n % 3 == 0: continue print(n) + #NOTE: Will finish by 1/11/25 From c319b32d0395996c8c18b7465eddd8edcd8bee2a Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sun, 2 Nov 2025 15:47:23 -0600 Subject: [PATCH 039/160] Update code_overload.py --- Section #2/code_overload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Section #2/code_overload.py b/Section #2/code_overload.py index a583ced..6586b0a 100644 --- a/Section #2/code_overload.py +++ b/Section #2/code_overload.py @@ -10,5 +10,5 @@ var_ible = True -while var_ible = True: +while var_ible == True: print("This is a overloading example of a while loop") From 316c925480569f1679609d7237654eddfcf8a91f Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sun, 2 Nov 2025 15:48:22 -0600 Subject: [PATCH 040/160] Update clock.py --- Section #2/clock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Section #2/clock.py b/Section #2/clock.py index 5afa2a4..f201781 100644 --- a/Section #2/clock.py +++ b/Section #2/clock.py @@ -5,5 +5,5 @@ for minutes in range (0, 60, 1): # print("Just iterated minutes") for seconds in range (0, 60, 1): - printf'(hours):(minutes):(seconds)') - #=================================== + printf'(hours):(minutes):(seconds)' +#=============================================== From b7a081b11bd2b0e908c4b0d74aebe50e31351f42 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sun, 2 Nov 2025 15:49:11 -0600 Subject: [PATCH 041/160] Update and rename TURTLE (With #).py to TURTLE(com).py --- Section #2/{TURTLE (With #).py => TURTLE(com).py} | 1 - 1 file changed, 1 deletion(-) rename Section #2/{TURTLE (With #).py => TURTLE(com).py} (99%) diff --git a/Section #2/TURTLE (With #).py b/Section #2/TURTLE(com).py similarity index 99% rename from Section #2/TURTLE (With #).py rename to Section #2/TURTLE(com).py index 42b9ce9..f5c3873 100644 --- a/Section #2/TURTLE (With #).py +++ b/Section #2/TURTLE(com).py @@ -4,7 +4,6 @@ ################# - # Concentric circles import turtle From 9d2a5d55a502791b5e33119cb1b6db8474a11e04 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sun, 2 Nov 2025 15:49:42 -0600 Subject: [PATCH 042/160] Update clock.py --- Section #2/clock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Section #2/clock.py b/Section #2/clock.py index f201781..7611020 100644 --- a/Section #2/clock.py +++ b/Section #2/clock.py @@ -1,6 +1,6 @@ ### clock.py ### # 10/30/25 -for hours in range(0,24,1); +for hours in range(0,24,1): # print("Just iterated hours") for minutes in range (0, 60, 1): # print("Just iterated minutes") From fe13b0e3d02ed186fbc1941aa1e4bb523c2edeb0 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sun, 2 Nov 2025 15:50:25 -0600 Subject: [PATCH 043/160] Update clock.py --- Section #2/clock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Section #2/clock.py b/Section #2/clock.py index 7611020..5d175de 100644 --- a/Section #2/clock.py +++ b/Section #2/clock.py @@ -5,5 +5,5 @@ for minutes in range (0, 60, 1): # print("Just iterated minutes") for seconds in range (0, 60, 1): - printf'(hours):(minutes):(seconds)' + print(f'(hours):(minutes):(seconds)') #=============================================== From 238c2323861b027ff3fb65eda5d752a288d513c7 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sun, 2 Nov 2025 15:52:41 -0600 Subject: [PATCH 044/160] Create test_code_samples.py --- test_code_samples.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 test_code_samples.py diff --git a/test_code_samples.py b/test_code_samples.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test_code_samples.py @@ -0,0 +1 @@ + From d66cdb7ba4a0069958e23fd0a33b883ccd7fd3b2 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Sun, 2 Nov 2025 15:52:50 -0600 Subject: [PATCH 045/160] Update test_code_samples.py --- test_code_samples.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_code_samples.py b/test_code_samples.py index 8b13789..32821aa 100644 --- a/test_code_samples.py +++ b/test_code_samples.py @@ -1 +1,3 @@ - +# This file is only to test pytest. +def test_example(): + assert 1 + 1 == 2 From c1510f5f3e8f142c38f2ad9822cec1c60e891ce5 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:11:16 -0600 Subject: [PATCH 046/160] Add files via upload --- Madlibs.py | 24 ++++++++ continue-example.py | 4 +- ...ek10-daren-neyland-multiplication-table.py | 57 +++++++++++++++++++ 3 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 Madlibs.py create mode 100644 section3-week10-daren-neyland-multiplication-table.py diff --git a/Madlibs.py b/Madlibs.py new file mode 100644 index 0000000..fafd4ef --- /dev/null +++ b/Madlibs.py @@ -0,0 +1,24 @@ +############################################## +## MAD LIBS GAME +## The purpose of the following code +## is to create a fully functional +## MAD LIBS game. +## +## Hope you enjoy :) +## +############################################## + +NOUN = str(input("Please enter a noun): ")) + +ADJ = str(input("Please enter an adjective): ")) + +VERB = str(input("Please enter a verb): ")) + +NOUN2 = str(input("Please enter a noun): ")) + +print (NOUN, VERB) + +print ("to play outside every") + +print(ADJ, NOUN2) + diff --git a/continue-example.py b/continue-example.py index adf66c5..077b392 100644 --- a/continue-example.py +++ b/continue-example.py @@ -1,5 +1,5 @@ ### continue-example.py ### -## The3DP / 10/30/25 ## +#DWN / 10/30/25 # #=========================# n = 0 @@ -8,5 +8,3 @@ if n % 3 == 0: continue print(n) - -#NOTE: Will finish by 1/11/25 diff --git a/section3-week10-daren-neyland-multiplication-table.py b/section3-week10-daren-neyland-multiplication-table.py new file mode 100644 index 0000000..2ecc2f2 --- /dev/null +++ b/section3-week10-daren-neyland-multiplication-table.py @@ -0,0 +1,57 @@ +################################################################## +# Daren Neyland ## +# daren@markandtraci.com ## +# Intro to Python, Section 3 ## +# Version 1.0 ## +# section3-week10-daren-neyland-multiplication-table.py ## +# 9/4/2025 ## +# This program qill quickly access ## +# how quickly a bucket will overflow. ## +################################################################## + +##################### OBJECTIVE ################################# +## Write a program that uses nested loops to print +## a multiplication grid from 1 to 10. +## +## The outer loop should iterate through +## numbers from 1 to 10 (the rows). +## +## The inner loop should iterate through +## 1 to 10 (the columns). +## +## Print the product in a formatted grid. +## +## Example output: +## 1 2 3 4 5 6 7 8 9 10 +## 2 4 6 8 10 12 14 16 18 20 +## 3 6 9 12 15 18 21 24 27 30 +## … +## 10 20 30 40 50 60 70 80 90 100 +################################################################## + + + +user_input = input("Would you like too see the multiplication table? (y or n) ") + +if user_input == 'n': + print("Okay") +if user_input == 'y': + print("Great!") + print("Running multiplication table: ") + for a in range(1, 11, 1): #1-10 + for b in range(1, 10, 1): #1-9 + print("===", a, b, "===") + +mult_put = input("Would you like too see them multiplied? (y or n) ") + +if mult_put == 'y': + print("Awesome!") + print("===", a * b, "===") +if mult_put == 'n': + print("Okay... ") + + + + + + From 426f061913fda62c8c555cdbc4b23681bf73ca57 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:13:57 -0600 Subject: [PATCH 047/160] Rename section3-week10-daren-neyland-multiplication-table.py to multiplication_table.py --- ...ren-neyland-multiplication-table.py => multiplication_table.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename section3-week10-daren-neyland-multiplication-table.py => multiplication_table.py (100%) diff --git a/section3-week10-daren-neyland-multiplication-table.py b/multiplication_table.py similarity index 100% rename from section3-week10-daren-neyland-multiplication-table.py rename to multiplication_table.py From f5646c1246bb8d7784ea30c893cab01c77365ff6 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:14:23 -0600 Subject: [PATCH 048/160] Update multiplication_table.py --- multiplication_table.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/multiplication_table.py b/multiplication_table.py index 2ecc2f2..71ac9b5 100644 --- a/multiplication_table.py +++ b/multiplication_table.py @@ -1,12 +1,12 @@ ################################################################## -# Daren Neyland ## -# daren@markandtraci.com ## -# Intro to Python, Section 3 ## +# ## +# ## +# ## # Version 1.0 ## -# section3-week10-daren-neyland-multiplication-table.py ## +# ## # 9/4/2025 ## -# This program qill quickly access ## -# how quickly a bucket will overflow. ## +# ## +# ## ################################################################## ##################### OBJECTIVE ################################# From 51daab5070daf28644b8715cc07b61fb5b3c0f9a Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:17:23 -0600 Subject: [PATCH 049/160] Update multiplication_table.py --- multiplication_table.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/multiplication_table.py b/multiplication_table.py index 71ac9b5..46d5fc6 100644 --- a/multiplication_table.py +++ b/multiplication_table.py @@ -1,13 +1,12 @@ -################################################################## -# ## -# ## -# ## -# Version 1.0 ## -# ## -# 9/4/2025 ## -# ## -# ## -################################################################## +################################################################### +## The3DP ## +## d73928430@gmail.com ## +## ## +## d73928430@gmail.com +## +## Date made: ## +## 9/4/2025 ## +################################################################### ##################### OBJECTIVE ################################# ## Write a program that uses nested loops to print From 1f492c170bbd66334e31843542832cd3c88cdf40 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:17:43 -0600 Subject: [PATCH 050/160] Update multiplication_table.py --- multiplication_table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multiplication_table.py b/multiplication_table.py index 46d5fc6..9025b24 100644 --- a/multiplication_table.py +++ b/multiplication_table.py @@ -2,8 +2,8 @@ ## The3DP ## ## d73928430@gmail.com ## ## ## -## d73928430@gmail.com -## +## d73928430@gmail.com ## +## ## ## Date made: ## ## 9/4/2025 ## ################################################################### From 7ccffdda604d054d783ed6824408ee83f33dd4eb Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:18:01 -0600 Subject: [PATCH 051/160] Update multiplication_table.py --- multiplication_table.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/multiplication_table.py b/multiplication_table.py index 9025b24..d3a3d0e 100644 --- a/multiplication_table.py +++ b/multiplication_table.py @@ -1,7 +1,6 @@ ################################################################### ## The3DP ## -## d73928430@gmail.com ## -## ## +## ## ## d73928430@gmail.com ## ## ## ## Date made: ## From 241bd1bcc584a73f07c972c5cea498ac6291b658 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:18:32 -0600 Subject: [PATCH 052/160] Rename multiplication_table.py to Section #2/multiplication_table.py --- multiplication_table.py => Section #2/multiplication_table.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename multiplication_table.py => Section #2/multiplication_table.py (100%) diff --git a/multiplication_table.py b/Section #2/multiplication_table.py similarity index 100% rename from multiplication_table.py rename to Section #2/multiplication_table.py From 42efb4336e207a660a78bb34a49e8ca24e0d1aca Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:20:21 -0600 Subject: [PATCH 053/160] Update continue-example.py --- continue-example.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/continue-example.py b/continue-example.py index 077b392..6df85d3 100644 --- a/continue-example.py +++ b/continue-example.py @@ -1,5 +1,5 @@ ### continue-example.py ### -#DWN / 10/30/25 # +#The3DP: 10/30/25 # #=========================# n = 0 @@ -8,3 +8,5 @@ if n % 3 == 0: continue print(n) + +# Uses the 'continue' statement From 7e12c806c97a10688a1f1a177450ce1b5a221a59 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:21:30 -0600 Subject: [PATCH 054/160] Update and rename continue-example.py to Section #2/continue-example.py --- continue-example.py => Section #2/continue-example.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename continue-example.py => Section #2/continue-example.py (100%) diff --git a/continue-example.py b/Section #2/continue-example.py similarity index 100% rename from continue-example.py rename to Section #2/continue-example.py From 5b6cc9ecc0419e4f26ca77fdd1c38b4c3aa06fda Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:22:04 -0600 Subject: [PATCH 055/160] Update and rename Madlibs.py to Section #2/Madlibs_.py --- Madlibs.py => Section #2/Madlibs_.py | 1 - 1 file changed, 1 deletion(-) rename Madlibs.py => Section #2/Madlibs_.py (99%) diff --git a/Madlibs.py b/Section #2/Madlibs_.py similarity index 99% rename from Madlibs.py rename to Section #2/Madlibs_.py index fafd4ef..91879af 100644 --- a/Madlibs.py +++ b/Section #2/Madlibs_.py @@ -21,4 +21,3 @@ print ("to play outside every") print(ADJ, NOUN2) - From 3e09c892f872e77db7340f51da403e637aad55cc Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:22:41 -0600 Subject: [PATCH 056/160] Update Madlibs.py --- Section #2/Madlibs.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Section #2/Madlibs.py b/Section #2/Madlibs.py index a1f0084..91879af 100644 --- a/Section #2/Madlibs.py +++ b/Section #2/Madlibs.py @@ -21,5 +21,3 @@ print ("to play outside every") print(ADJ, NOUN2) - -#NOTE: Will finish by 1/11/25 From fccc7b4f15087ffb73476f9ba90d1c60bc879713 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:24:06 -0600 Subject: [PATCH 057/160] Update Madlibs_.py --- Section #2/Madlibs_.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Section #2/Madlibs_.py b/Section #2/Madlibs_.py index 91879af..3c1d957 100644 --- a/Section #2/Madlibs_.py +++ b/Section #2/Madlibs_.py @@ -4,7 +4,7 @@ ## is to create a fully functional ## MAD LIBS game. ## -## Hope you enjoy :) +## NOTE: Work in progress ## ############################################## @@ -14,7 +14,12 @@ VERB = str(input("Please enter a verb): ")) -NOUN2 = str(input("Please enter a noun): ")) +NOUN_2 = str(input("Please enter a noun): ")) + + + + + print (NOUN, VERB) From 1cd6eec9fddb0e3271a383fda4f352c30ec3fd3b Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:28:08 -0600 Subject: [PATCH 058/160] Update Madlibs_.py --- Section #2/Madlibs_.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Section #2/Madlibs_.py b/Section #2/Madlibs_.py index 3c1d957..ee4d5e9 100644 --- a/Section #2/Madlibs_.py +++ b/Section #2/Madlibs_.py @@ -10,18 +10,24 @@ NOUN = str(input("Please enter a noun): ")) +NOUN_2 = str(input("Please enter a second noun): ")) + ADJ = str(input("Please enter an adjective): ")) +ADJ_2 = str(input("Please enter a second adjective): ")) + VERB = str(input("Please enter a verb): ")) -NOUN_2 = str(input("Please enter a noun): ")) +COLOR = str(input("Think of one color, then enter it below): ")) + + -print (NOUN, VERB) +print("Bill loves taking walks in the park!") print ("to play outside every") From d9c61abef33b3777346247050972544b809c2fac Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:32:44 -0600 Subject: [PATCH 059/160] Update Madlibs_.py --- Section #2/Madlibs_.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Section #2/Madlibs_.py b/Section #2/Madlibs_.py index ee4d5e9..c8f6329 100644 --- a/Section #2/Madlibs_.py +++ b/Section #2/Madlibs_.py @@ -28,7 +28,8 @@ print("Bill loves taking walks in the park!") +print('''However, one unusual Saturday evening surprised Bill so much, + (that he was never the same again.''') -print ("to play outside every") - -print(ADJ, NOUN2) +print ("It was", NOUN, "outside the", NOUN_2) +# Will continue later From 5ab99df78e56841183da16feecb02774c76e5da4 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:33:31 -0600 Subject: [PATCH 060/160] Update Madlibs_.py --- Section #2/Madlibs_.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Section #2/Madlibs_.py b/Section #2/Madlibs_.py index c8f6329..78fadaf 100644 --- a/Section #2/Madlibs_.py +++ b/Section #2/Madlibs_.py @@ -8,6 +8,7 @@ ## ############################################## +##============================================== NOUN = str(input("Please enter a noun): ")) NOUN_2 = str(input("Please enter a second noun): ")) @@ -19,13 +20,7 @@ VERB = str(input("Please enter a verb): ")) COLOR = str(input("Think of one color, then enter it below): ")) - - - - - - - +##=============================================================== print("Bill loves taking walks in the park!") print('''However, one unusual Saturday evening surprised Bill so much, From 229d3688ba97b039ffed53d7f0dba71e079d62d6 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:34:53 -0600 Subject: [PATCH 061/160] Update Madlibs_.py --- Section #2/Madlibs_.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Section #2/Madlibs_.py b/Section #2/Madlibs_.py index 78fadaf..24e5a74 100644 --- a/Section #2/Madlibs_.py +++ b/Section #2/Madlibs_.py @@ -8,7 +8,7 @@ ## ############################################## -##============================================== +##=============== INPUT ======================== NOUN = str(input("Please enter a noun): ")) NOUN_2 = str(input("Please enter a second noun): ")) @@ -22,9 +22,11 @@ COLOR = str(input("Think of one color, then enter it below): ")) ##=============================================================== +##===================== OUTPUT ====================================== print("Bill loves taking walks in the park!") print('''However, one unusual Saturday evening surprised Bill so much, (that he was never the same again.''') print ("It was", NOUN, "outside the", NOUN_2) # Will continue later +##=================================================================== From 503b8bef7690bce0e4b8911587a81c2fdfb4d997 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 3 Nov 2025 06:35:14 -0600 Subject: [PATCH 062/160] Update and rename Madlibs_.py to Madlibs_2.py --- Section #2/{Madlibs_.py => Madlibs_2.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Section #2/{Madlibs_.py => Madlibs_2.py} (97%) diff --git a/Section #2/Madlibs_.py b/Section #2/Madlibs_2.py similarity index 97% rename from Section #2/Madlibs_.py rename to Section #2/Madlibs_2.py index 24e5a74..d483167 100644 --- a/Section #2/Madlibs_.py +++ b/Section #2/Madlibs_2.py @@ -1,5 +1,5 @@ ############################################## -## MAD LIBS GAME +## SECOND MAD LIBS GAME ## The purpose of the following code ## is to create a fully functional ## MAD LIBS game. From 4df3ca91012207bc937777a7569b056414e18aa0 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Wed, 5 Nov 2025 16:38:55 -0600 Subject: [PATCH 063/160] Create static.yml --- .github/workflows/static.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..f2c9e97 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 6724ff1b86cde5a71d354ded14957abd39e07d5e Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:28:06 -0600 Subject: [PATCH 064/160] Create gazebo.py --- Section #1/gazebo.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Section #1/gazebo.py diff --git a/Section #1/gazebo.py b/Section #1/gazebo.py new file mode 100644 index 0000000..77e8737 --- /dev/null +++ b/Section #1/gazebo.py @@ -0,0 +1,23 @@ +from tf.transformations import euler_from_quaternion +from gazebo_msgs.srv import GetModelState +import rospy + +def get_orientation(): + rospy.wait_for_service('/gazebo/get_model_state') + try: + get_model_state = rospy.ServiceProxy('/gazebo/get_model_state', GetModelState) + response = get_model_state('drone', '') # Replace 'drone' with the name of your drone model in Gazebo + + # Quaternion to Euler angles will be converted here + quaternion = response.pose.orientation + euler = euler_from_quaternion([quaternion.x, quaternion.y, quaternion.z, quaternion.w]) + + roll, pitch, yaw = euler + print(f'Pitch: {pitch}, Roll: {roll}, Yaw: {yaw}') + + except rospy.ServiceException as e: + print("Service call failed: %s" % e) + +if __name__ == '__main__': + rospy.init_node('get_orientation') + get_orientation() From b6f0aaf30f35833d000b5f5fa5b9f4b49cd0038e Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:30:09 -0600 Subject: [PATCH 065/160] Create exit_program.py --- Section #1/exit_program.py | 58 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Section #1/exit_program.py diff --git a/Section #1/exit_program.py b/Section #1/exit_program.py new file mode 100644 index 0000000..c8c16a3 --- /dev/null +++ b/Section #1/exit_program.py @@ -0,0 +1,58 @@ +import time +import os + +def exit_program(): + """ + This function manages the user interaction for exiting or continuing the program. + The user can input 1 to exit, 0 to continue, or any invalid input to prompt the user for correct input. + """ + # Initialize variable 'ex' with a value other than 1 or 0 to start the loop + ex = 2 + + print("Welcome to the program!") + print("This function allows you to either continue or exit the program.") + print("You can enter '1' to exit the program or '0' to continue the program.") + + # Start a loop that will continue until the user enters either '1' or '0' + while ex != 1 and ex != 0: + try: + # Prompt the user for input + user_input = input("\nPlease enter your choice (1 to exit, 0 to continue): ") + + # Check if the input is a digit (i.e., an integer string) + if user_input.isdigit(): + ex = int(user_input) # Convert the input string to an integer + else: + # If input is not a digit, prompt the user for a valid input + print("Error: Invalid input. Please enter a valid number (1 to exit, 0 to continue).") + + # Display different messages depending on the input + if ex == 1: + print("\nYou have chosen to exit the program. Goodbye!") + elif ex == 0: + print("\nYou have chosen to continue. The program will continue running.") + else: + print("Error: Input out of expected range. Please enter only 1 or 0.") + + except ValueError: + # If there's any error during input (though unlikely with 'isdigit' check) + print("Error: Something went wrong while processing your input. Please try again.") + + # Additional behavior after exiting or continuing + # Here, we simulate a program performing additional actions based on the user's choice + if ex == 1: + print("Exiting the program... Saving progress and shutting down.") + time.sleep(2) # Simulate the time it might take to save progress + # You could add code here to save data or clean up resources if needed + elif ex == 0: + print("Continuing the program... Performing the next task.") + # Code for continuing the program goes here + perform_task() + + # Log action (whether the user exited or continued) for debugging or tracking purposes + log_action(ex) + + +def perform_task(): + """ + Simulates performing a task in the program after the user chooses to continue. From df06825b57dbec0973d74ab8fb78dce88f51dfa8 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:31:19 -0600 Subject: [PATCH 066/160] Create turtle_test.py --- Section #1/turtle_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Section #1/turtle_test.py diff --git a/Section #1/turtle_test.py b/Section #1/turtle_test.py new file mode 100644 index 0000000..3633a05 --- /dev/null +++ b/Section #1/turtle_test.py @@ -0,0 +1,11 @@ +import turtle as t +import time +t.color("blue") +t.begin_fill() +counter=0 +while counter < 4: +t.forward(100) +t.left(90) +counter = counter+1 +t.end_fill() +time.sleep(5) From 8419f83cf3521d413da09cfd432bf09a26e9639c Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:32:46 -0600 Subject: [PATCH 067/160] Create word.py --- Section #1/word.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Section #1/word.py diff --git a/Section #1/word.py b/Section #1/word.py new file mode 100644 index 0000000..937ef41 --- /dev/null +++ b/Section #1/word.py @@ -0,0 +1,19 @@ +import random +import string + +def generate_wordsearch(grid_size, words): + # Create an empty grid + grid = [[' ' for _ in range(grid_size)] for _ in range(grid_size)] + + # Function to place a word in the grid + def place_word(word): + word_length = len(word) + placed = False + + while not placed: + direction = random.choice(['horizontal', 'vertical']) + if direction == 'horizontal': + row = random.randint(0, grid_size - 1) + col = random.randint(0, grid_size - word_length) + if all(grid[row][col + i] == ' ' for i in range(word_length)): + for i in range(word_length): From 3ec347195da9bbfe83c9d3a8b7233362b1392aa5 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:33:39 -0600 Subject: [PATCH 068/160] Create for_var.py --- Section #1/for_var.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Section #1/for_var.py diff --git a/Section #1/for_var.py b/Section #1/for_var.py new file mode 100644 index 0000000..9d937a2 --- /dev/null +++ b/Section #1/for_var.py @@ -0,0 +1,3 @@ +#create a for loop +for varible in range(50): +print ("CHRISTMAS IS ALMOST OVER!!!") From 62cc61ea0c99be0749c7719c092b6a4506207c0a Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:34:38 -0600 Subject: [PATCH 069/160] Create interrogation.py --- Section #1/interrogation.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Section #1/interrogation.py diff --git a/Section #1/interrogation.py b/Section #1/interrogation.py new file mode 100644 index 0000000..f5e3038 --- /dev/null +++ b/Section #1/interrogation.py @@ -0,0 +1,9 @@ +fname = input("what is your first name?") +lname = input("what is your last name?") +age = input("how old are you?") +color = input("what is your favorite color?") + +print("Your first name is "+ fname) +print("Your last name is "+ lname) +print("Your age is "+ age) +print("Your color is "+ color) From 2a475599fae0dd052bd9226962cff12838a132cd Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:35:55 -0600 Subject: [PATCH 070/160] Create tello_port.py --- Section #1/tello_port.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Section #1/tello_port.py diff --git a/Section #1/tello_port.py b/Section #1/tello_port.py new file mode 100644 index 0000000..4f22f61 --- /dev/null +++ b/Section #1/tello_port.py @@ -0,0 +1,19 @@ +import socket +import time + +# Tello IP and port +TELLO_IP = '192.168.10.1' +TELLO_PORT = 8889 +LOCAL_PORT = 9000 + +# Initialize a UDP socket +sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) +sock.bind(('', LOCAL_PORT)) + +def send_command(command): + try: + sock.sendto(command.encode('utf-8'), (TELLO_IP, TELLO_PORT)) + print(f"Sent command: {command}") + + # Receive response from Tello + response, _ = sock.recvfrom(1024) From 434cddbbed043e4be6fe8f91c87000fdfead1ee2 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:37:53 -0600 Subject: [PATCH 071/160] Create tello_vid.py --- Section #1/tello_vid.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Section #1/tello_vid.py diff --git a/Section #1/tello_vid.py b/Section #1/tello_vid.py new file mode 100644 index 0000000..9d334a3 --- /dev/null +++ b/Section #1/tello_vid.py @@ -0,0 +1,18 @@ +import cv2 +from djitellopy import Tello +import time + +# Initialize the Tello drone +tello = Tello() +tello.connect() +tello.streamon() + +try: + # Take off and set an initial height + tello.takeoff() + tello.move_up(50) # Adjust initial height as needed + + while True: + # Capture video frame-by-frame + frame = tello.get_frame_read().frame + gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) From 67086b2921001080b2e64fc4ab81444cd29a8439 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:39:30 -0600 Subject: [PATCH 072/160] Create func.py --- Section #1/func.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Section #1/func.py diff --git a/Section #1/func.py b/Section #1/func.py new file mode 100644 index 0000000..ca93ffe --- /dev/null +++ b/Section #1/func.py @@ -0,0 +1,15 @@ +#functions + + +varible1 = input ("enter a number") +varible2 = input ("enter a second number") + +def add(varible1, varible2) : + +output = varible1 + varible2 + +return output + + +#call the function +add (varible1, varible2) From 0cf84b7e70b5ba96fea30015bc03caf63ca5de9f Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:43:53 -0600 Subject: [PATCH 073/160] Create cater.py --- Section #1/cater.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Section #1/cater.py diff --git a/Section #1/cater.py b/Section #1/cater.py new file mode 100644 index 0000000..f8387c8 --- /dev/null +++ b/Section #1/cater.py @@ -0,0 +1,26 @@ +## UPDATE 1/14/2025 +#================== +age = input("What is your age? ") +job_category = input("What category of job are you interested in? (e.g., Healthcare, Technology, Education, Finance, Arts, etc.) ") +expected_income = input("What is your expected income? ") +years_ = input("How many years of experience do you have? ") + +# Define job categories with specific jobs +if job_category.lower() == "healthcare": + jobs = ["Doctor", "Nurse", "Pharmacist", "Physical Therapist", "Surgeon"] +elif job_category.lower() == "technology": + jobs = ["Software Engineer", "Data Scientist", "Web Developer", "Network Administrator", "IT Support Specialist"] +elif job_category.lower() == "education": + jobs = ["Teacher", "Professor", "School Counselor", "Librarian", "Special Education Teacher"] +elif job_category.lower() == "finance": + jobs = ["Accountant", "Financial Analyst", "Investment Banker", "Financial Planner", "Auditor"] +elif job_category.lower() == "arts": + jobs = ["Graphic Designer", "Musician", "Painter", "Photographer", "Actor"] +else: + jobs = ["Please specify a valid category (Healthcare, Technology, Education, Finance, Arts)."] + +print("You are " + age + " years old.") +print("Your desired job category is: " + job_category) +print("Some jobs in the " + job_category + " category are: " + ", ".join(jobs)) +print("Your expected income is: " + expected_income) +print("You have " + years_ + " years of experience.") From 1c99c892d5e0b8d9bc7c22616860662dc6d66af1 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:45:31 -0600 Subject: [PATCH 074/160] Create simp_ai.py --- Section #1/simp_ai.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Section #1/simp_ai.py diff --git a/Section #1/simp_ai.py b/Section #1/simp_ai.py new file mode 100644 index 0000000..f088acc --- /dev/null +++ b/Section #1/simp_ai.py @@ -0,0 +1,19 @@ +pip install nltk + +import nltk +import random +import string +from nltk.corpus import stopwords + +# Download required NLTK packages +nltk.download('punkt') +nltk.download('stopwords') + +# Predefined responses and keywords +responses = { + "greeting": ["Hello!", "Hi there!", "Hey! How can I help?"], + "farewell": ["Goodbye!", "See you later!", "Take care!"], + "default": ["Sorry, I didn't understand that.", "Can you rephrase?", "I'm n$ +} + +# Basic function to preprocess input text From 46a415469aba911a7233b3329f6040bef7a132a0 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:47:58 -0600 Subject: [PATCH 075/160] Create tello_path.py --- Section #1/tello_path.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Section #1/tello_path.py diff --git a/Section #1/tello_path.py b/Section #1/tello_path.py new file mode 100644 index 0000000..4cc03ef --- /dev/null +++ b/Section #1/tello_path.py @@ -0,0 +1,19 @@ +from djitellopy import Tello + +#Create a tello Object +drone = Tello() + +# Connect to Tello Drone +drone.connect() + +# Get battery status +print("Battery:", drone.get_battery()) + +# Take off +drone.takeoff() + +# Fly up 5 seconds +drone.move_up(100) + +# Fly down 2.5 seconds +drone.move_down(50) From 4b570be1579ee1b7a0ddce99b95cdd85349aa207 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:50:04 -0600 Subject: [PATCH 076/160] Create bool_var.py --- Section #1/bool_var.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Section #1/bool_var.py diff --git a/Section #1/bool_var.py b/Section #1/bool_var.py new file mode 100644 index 0000000..29ede1d --- /dev/null +++ b/Section #1/bool_var.py @@ -0,0 +1,18 @@ +def exit(): + ex = 2 + while ex != 1 and ex != 0: + ex = int(input("enter 1 to continue or 0 to exit")) + return ex + +#variable to keep track of loop iterations +counter = 0 + +#create variable for bool +stay = True + +while stay: + print(counter) + counter+=1 + stay = exit() + +print("You have exited the loop") From f2b8592bd1a13d2fea062fd9ed934a399db9dcc3 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Fri, 14 Nov 2025 21:51:12 -0600 Subject: [PATCH 077/160] Create tello_bottom_cam.py --- Section #1/tello_bottom_cam.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Section #1/tello_bottom_cam.py diff --git a/Section #1/tello_bottom_cam.py b/Section #1/tello_bottom_cam.py new file mode 100644 index 0000000..501e273 --- /dev/null +++ b/Section #1/tello_bottom_cam.py @@ -0,0 +1,12 @@ +from djitellopy import Tello +import time +#Create an instance of the Tello class +tello = Tello() +# Connect to the Tello drone +tello.connect() +# Check battery level (optional) +battery = tello.get_battery() +print(f"Battery level: {battery}%") +tello.takeoff +tello.rotate_clockwise(360) +send_command("camera bottom") From a69cd74e92d91757e487d0313b404df0a5df7310 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:22:45 -0600 Subject: [PATCH 078/160] Update and rename Seg-1.py to CD-1.py --- Section #1/{Seg-1.py => CD-1.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Section #1/{Seg-1.py => CD-1.py} (100%) diff --git a/Section #1/Seg-1.py b/Section #1/CD-1.py similarity index 100% rename from Section #1/Seg-1.py rename to Section #1/CD-1.py From bbc87ce7de6b0dea5eef5df630d6cb74200400b7 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:22:58 -0600 Subject: [PATCH 079/160] Rename Section #1/Seg-2.py to Section CD-2.py --- Section #1/Seg-2.py => Section CD-2.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Section #1/Seg-2.py => Section CD-2.py (100%) diff --git a/Section #1/Seg-2.py b/Section CD-2.py similarity index 100% rename from Section #1/Seg-2.py rename to Section CD-2.py From a88fc8375d754559e2a4d92a945f0c3ec88d572b Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:23:40 -0600 Subject: [PATCH 080/160] Update and rename Section CD-2.py to Section #1/ CD-2.py --- Section CD-2.py => Section #1/ CD-2.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Section CD-2.py => Section #1/ CD-2.py (100%) diff --git a/Section CD-2.py b/Section #1/ CD-2.py similarity index 100% rename from Section CD-2.py rename to Section #1/ CD-2.py From 1af2c2248fb1c1302e084e7abb7ca84200c90c6a Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:24:00 -0600 Subject: [PATCH 081/160] Rename Seg-3.py to CD-3.py --- Section #1/{Seg-3.py => CD-3.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Section #1/{Seg-3.py => CD-3.py} (100%) diff --git a/Section #1/Seg-3.py b/Section #1/CD-3.py similarity index 100% rename from Section #1/Seg-3.py rename to Section #1/CD-3.py From 06e49e74ccc89723a96961615715a9d3a96b7628 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:24:23 -0600 Subject: [PATCH 082/160] Update and rename Seg-4.py to CD-4.py --- Section #1/{Seg-4.py => CD-4.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Section #1/{Seg-4.py => CD-4.py} (100%) diff --git a/Section #1/Seg-4.py b/Section #1/CD-4.py similarity index 100% rename from Section #1/Seg-4.py rename to Section #1/CD-4.py From 11a201f9c83b1247832f35143290e96ee41b497c Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:24:39 -0600 Subject: [PATCH 083/160] Rename Seg-5.py to CD-5.py --- Section #1/{Seg-5.py => CD-5.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Section #1/{Seg-5.py => CD-5.py} (100%) diff --git a/Section #1/Seg-5.py b/Section #1/CD-5.py similarity index 100% rename from Section #1/Seg-5.py rename to Section #1/CD-5.py From d3a151d02914fdf61aacee2c209c9c579f6f2342 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:27:50 -0600 Subject: [PATCH 084/160] Update turtle_test.py --- Section #1/turtle_test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Section #1/turtle_test.py b/Section #1/turtle_test.py index 3633a05..30a1620 100644 --- a/Section #1/turtle_test.py +++ b/Section #1/turtle_test.py @@ -1,11 +1,11 @@ import turtle as t import time -t.color("blue") -t.begin_fill() +t. color("blue") +t. begin_fill() counter=0 while counter < 4: -t.forward(100) -t.left(90) +t. forward(100) +t. left(90) counter = counter+1 -t.end_fill() -time.sleep(5) +t. end_fill() +time. sleep(5) From 8c6f5a3ddfe07b774fdb719a462e88563887eae2 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:30:04 -0600 Subject: [PATCH 085/160] Create TinkerCAD (Bit77) --- HTML (embeds)/TinkerCAD (Bit77) | 1 + 1 file changed, 1 insertion(+) create mode 100644 HTML (embeds)/TinkerCAD (Bit77) diff --git a/HTML (embeds)/TinkerCAD (Bit77) b/HTML (embeds)/TinkerCAD (Bit77) new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/HTML (embeds)/TinkerCAD (Bit77) @@ -0,0 +1 @@ + From 6d675b9dfff6b4c5118fbcc6cd94227fdccdb3b7 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:31:33 -0600 Subject: [PATCH 086/160] Update TinkerCAD (Bit77) --- HTML (embeds)/TinkerCAD (Bit77) | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTML (embeds)/TinkerCAD (Bit77) b/HTML (embeds)/TinkerCAD (Bit77) index 8b13789..b6ae628 100644 --- a/HTML (embeds)/TinkerCAD (Bit77) +++ b/HTML (embeds)/TinkerCAD (Bit77) @@ -1 +1 @@ - + From 9330d39fe28e7abe3a3552400be37cbed32e6ac0 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 25 Nov 2025 13:38:31 -0600 Subject: [PATCH 087/160] Update TinkerCAD (Bit77) --- HTML (embeds)/TinkerCAD (Bit77) | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/HTML (embeds)/TinkerCAD (Bit77) b/HTML (embeds)/TinkerCAD (Bit77) index b6ae628..0b6f6fd 100644 --- a/HTML (embeds)/TinkerCAD (Bit77) +++ b/HTML (embeds)/TinkerCAD (Bit77) @@ -1 +1,21 @@ + + + + + + + + + + + + + + + + + + + + From b49acd81725ca380ebfd1ef7224480c84a77594b Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 2 Feb 2026 14:33:09 -0600 Subject: [PATCH 088/160] Add files via upload --- Morse Code Translator.py | 66 ++++++++++++++++ ZookeeperCP.py | 36 +++++++++ cpu_pendown.py | 158 +++++++++++++++++++++++++++++++++++++++ cursor_run.py | 7 ++ 4 files changed, 267 insertions(+) create mode 100644 Morse Code Translator.py create mode 100644 ZookeeperCP.py create mode 100644 cpu_pendown.py create mode 100644 cursor_run.py diff --git a/Morse Code Translator.py b/Morse Code Translator.py new file mode 100644 index 0000000..4fd7c37 --- /dev/null +++ b/Morse Code Translator.py @@ -0,0 +1,66 @@ +## Morse Code Converter ## +## Date created: 1/30/2026 +## Goal: to create a self-working +## morse code (to English) translator +## using complete Python code. +##==================================== + +A = ['A is:', '.-'] +B = ['B is:', '-...'] +C = ['C is:', '-.-.'] +D = ['D is:', '-..'] +E = ['E is:', '.'] +F = ['F is:', '..-.'] +G = ['G is:', '--.'] +H = ['H is:', '...'] +I = ['I is:', '..'] +J = ['J is:', '.---'] +K = ['K is:', '-.-'] +L = ['L is:', '.-..'] +M = ['M is:', '--'] +N = ['N is:', '-.'] +O = ['O is:', '---'] +P = ['P is:', '.--.'] +Q = ['Q is;', '--.-'] +R = ['R is:', '.-.'] +S = ['S is:', '..'] +T = ['T is:', '-'] +U = ['U is:', '..-'] +V = ['V is:', '...-'] +W = ['W is:', '.--'] +X = ['X is:', '-..-'] +Y = ['Y is:', '-.--'] +Z = ['Z is:', '--..'] + + +## FOR TUPLE TESTING ONLY +## LEAVE COMMENTED OUT WHEN NOT TESTING +## (KEY Commands: "^3" to comment out, "^4" to uncomment) + +##print(A) +##print(B) +##print(C) +##print(D) +##print(E) +##print(F) +##print(G) +##print(H) +##print(I) +##print(J) +##print(K) +##print(L) +##print(M) +##print(N) +##print(O) +##print(P) +##print(Q) +##print(R) +##print(S) +##print(T) +##print(U) +##print(V) +##print(W) +##print(X) +##print(Y) +##print(Z) + diff --git a/ZookeeperCP.py b/ZookeeperCP.py new file mode 100644 index 0000000..54f5bf4 --- /dev/null +++ b/ZookeeperCP.py @@ -0,0 +1,36 @@ +## Coding proj + +list1 = ['101', 'Zebras', 'Grass', '0730'] +list2 = ['102', 'Elephants', 'Vegetables', '0900'] +list3 = ['103', 'Geese', 'Worms', '0845'] +list4 = ['104', 'Sheep', 'Grass', '0930'] +list5= ['105', 'Turtle', 'Vegetables', '0745'] +list6 = ['106', 'Unicorn', 'Glitter', '0805'] +list7 = ['107', 'Giraffe', 'Vegetables', '0800'] +list8 = ['108', 'Capybara', 'Vegetables', '0808'] +list9 = ['109', 'Monkeys', 'Fruit', '0953'] +list10 = ['110', 'Turkey', 'Worms', '0738'] +list11 = ['111', 'T-Rex', 'Dinosaurs', '0747'] +list12 = ['112', 'Possum', 'Worms', '2000'] +list13 = ['113', 'Goats', 'Grass', '1005'] +list14 = ['114', 'Lions', 'Meat', '0923'] +list15 = ['115', 'Tigers', 'Meat', '0843'] + +# FOR TESTING + +print(list1) +print(list2) +print(list3) +print(list4) +print(list5) +print(list6) +print(list7) +print(list8) +print(list9) +print(list10) +print(list11) +print(list12) +print(list13) +print(list14) +print(list15) + diff --git a/cpu_pendown.py b/cpu_pendown.py new file mode 100644 index 0000000..238e9b4 --- /dev/null +++ b/cpu_pendown.py @@ -0,0 +1,158 @@ +### cpu_pendown.py ### +#====================# + +import multiprocessing +import time +import math +import sys +from datetime import datetime + +# psutil is required for temperature + CPU usage readings +try: + import psutil +except ImportError: + psutil = None + + +def cpu_stress(): + # Busy loop doing floating‑point work + x = 0.0001 + while True: + x = math.sqrt(x * x + 1) + + +def clear_line(): + sys.stdout.write("\r" + " " * 120 + "\r") + sys.stdout.flush() + + +def get_cpu_temp(): + """Returns CPU temperature in °C if available, otherwise None.""" + if psutil is None: + return None + + try: + temps = psutil.sensors_temperatures() + if not temps: + return None + + for name in temps: + for entry in temps[name]: + if entry.current is not None: + return entry.current + except Exception: + return None + + return None + + +if __name__ == "__main__": + print("CPU Stress Test") + print("----------------") + + # Ask user how long to run the test + while True: + try: + duration = int(input("Enter test duration in seconds: ")) + if duration > 0: + break + else: + print("Please enter a positive number.") + except ValueError: + print("Please enter a valid integer.") + + core_count = multiprocessing.cpu_count() + print(f"Detected CPU cores: {core_count}") + + start_timestamp = datetime.now() + print("Starting stress test...") + + # Start worker processes + processes = [] + for _ in range(core_count): + p = multiprocessing.Process(target=cpu_stress) + p.start() + processes.append(p) + + print("CPU stress test running. Press Ctrl+C to stop early.") + + start_time = time.time() + stopped_early = False + + # Logs: list of (timestamp, temperature, cpu_usage) + telemetry_log = [] + + # Initialize psutil CPU usage measurement + if psutil: + psutil.cpu_percent(interval=None) + + try: + while True: + elapsed = int(time.time() - start_time) + remaining = duration - elapsed + + # Read CPU temperature + temp = get_cpu_temp() + + # Read CPU usage percentage + cpu_usage = psutil.cpu_percent(interval=None) if psutil else None + + # Store telemetry + telemetry_log.append((datetime.now(), temp, cpu_usage)) + + if remaining <= 0: + break + + clear_line() + if temp is not None and cpu_usage is not None: + sys.stdout.write( + f"Running... {elapsed}s elapsed | {remaining}s remaining | " + f"Temp: {temp:.1f}°C | CPU Usage: {cpu_usage:.1f}%" + ) + elif cpu_usage is not None: + sys.stdout.write( + f"Running... {elapsed}s elapsed | {remaining}s remaining | " + f"Temp: N/A | CPU Usage: {cpu_usage:.1f}%" + ) + else: + sys.stdout.write( + f"Running... {elapsed}s elapsed | {remaining}s remaining | " + f"Temp: N/A | CPU Usage: N/A" + ) + + sys.stdout.flush() + time.sleep(1) + + except KeyboardInterrupt: + stopped_early = True + print("\nStopping early...") + + # Stop all processes + for p in processes: + p.terminate() + + clear_line() + print("CPU stress test completed.") + + end_timestamp = datetime.now() + actual_runtime = int(time.time() - start_time) + + # Save results to a file + filename = f"cpu_test_results_{start_timestamp.strftime('%Y-%m-%d_%H-%M-%S')}.txt" + with open(filename, "w") as f: + f.write("CPU Stress Test Results\n") + f.write("-----------------------\n") + f.write(f"Start time: {start_timestamp}\n") + f.write(f"End time: {end_timestamp}\n") + f.write(f"CPU cores used: {core_count}\n") + f.write(f"Requested duration: {duration} seconds\n") + f.write(f"Actual runtime: {actual_runtime} seconds\n") + f.write(f"Stopped early: {stopped_early}\n\n") + + f.write("Telemetry Log (timestamp | temp °C | CPU %):\n") + for ts, t, usage in telemetry_log: + t_str = f"{t:.1f}°C" if t is not None else "N/A" + u_str = f"{usage:.1f}%" if usage is not None else "N/A" + f.write(f"{ts} | {t_str} | {u_str}\n") + + print(f"Results saved to: {filename}") diff --git a/cursor_run.py b/cursor_run.py new file mode 100644 index 0000000..e432d8c --- /dev/null +++ b/cursor_run.py @@ -0,0 +1,7 @@ +import time + +while True: + for char in "/-\|": + # \r moves the cursor back to the start of the line + print(f"\r{char} Loading...", end="", flush=True) + time.sleep(0.1) From 8aa1345d2dca4632f7c3a24130042cf222447fe1 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 2 Feb 2026 14:41:49 -0600 Subject: [PATCH 089/160] Add work in progress note to ZookeeperCP.py Added a note indicating that the program is a work in progress. --- ZookeeperCP.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ZookeeperCP.py b/ZookeeperCP.py index 54f5bf4..1c7d5db 100644 --- a/ZookeeperCP.py +++ b/ZookeeperCP.py @@ -34,3 +34,4 @@ print(list14) print(list15) +# NOTE: This program is still a work in progress. From 2b0dfc51087432ee44be22458d072272fc215830 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 2 Feb 2026 14:43:12 -0600 Subject: [PATCH 090/160] Revise header comments and add progress note Updated header comments and added work in progress note. --- Morse Code Translator.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Morse Code Translator.py b/Morse Code Translator.py index 4fd7c37..1febca0 100644 --- a/Morse Code Translator.py +++ b/Morse Code Translator.py @@ -1,10 +1,14 @@ -## Morse Code Converter ## -## Date created: 1/30/2026 +## Morse Code Converter ##============ +## Date started: 1/30/2026 ## Goal: to create a self-working ## morse code (to English) translator ## using complete Python code. ##==================================== +#===================================== +# NOTE: This program is still a work in progress. +# Expected Finish Date: Next Saturday +#===================================== A = ['A is:', '.-'] B = ['B is:', '-...'] C = ['C is:', '-.-.'] From 9adf1714667209612e87eee19375431414ee18c5 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 3 Feb 2026 10:28:37 -0600 Subject: [PATCH 091/160] Rename ZookeeperCP.py to Section #3/ZookeeperCP.py --- ZookeeperCP.py => Section #3/ZookeeperCP.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ZookeeperCP.py => Section #3/ZookeeperCP.py (100%) diff --git a/ZookeeperCP.py b/Section #3/ZookeeperCP.py similarity index 100% rename from ZookeeperCP.py rename to Section #3/ZookeeperCP.py From f2404e95d878ca1a4f5f9f16407c711cbbb18e6e Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 3 Feb 2026 10:29:09 -0600 Subject: [PATCH 092/160] Rename cpu_pendown.py to Section #3/cpu_pendown.py --- cpu_pendown.py => Section #3/cpu_pendown.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename cpu_pendown.py => Section #3/cpu_pendown.py (100%) diff --git a/cpu_pendown.py b/Section #3/cpu_pendown.py similarity index 100% rename from cpu_pendown.py rename to Section #3/cpu_pendown.py From ad743b0efd270b7c1b26e5cc7fcd73a9d894e981 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 3 Feb 2026 10:29:32 -0600 Subject: [PATCH 093/160] Rename Morse Code Translator.py to Morse_code_translator.py --- Morse Code Translator.py => Morse_code_translator.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Morse Code Translator.py => Morse_code_translator.py (100%) diff --git a/Morse Code Translator.py b/Morse_code_translator.py similarity index 100% rename from Morse Code Translator.py rename to Morse_code_translator.py From 4fec8a3d623bf69e20b04ed640fcae5dcf4db759 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 3 Feb 2026 10:30:02 -0600 Subject: [PATCH 094/160] Rename Morse_code_translator.py to Section #3/mmorse_code_translator.py --- Morse_code_translator.py => Section #3/mmorse_code_translator.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Morse_code_translator.py => Section #3/mmorse_code_translator.py (100%) diff --git a/Morse_code_translator.py b/Section #3/mmorse_code_translator.py similarity index 100% rename from Morse_code_translator.py rename to Section #3/mmorse_code_translator.py From a83ca44a8094da7d8aa0ddeda4f72f9437a6ac81 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 3 Feb 2026 10:30:22 -0600 Subject: [PATCH 095/160] Rename cursor_run.py to Section #3/cursor_run.py --- cursor_run.py => Section #3/cursor_run.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename cursor_run.py => Section #3/cursor_run.py (100%) diff --git a/cursor_run.py b/Section #3/cursor_run.py similarity index 100% rename from cursor_run.py rename to Section #3/cursor_run.py From deee5470635f349cb826f81a6e20430ce5a03cf8 Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 3 Feb 2026 10:30:43 -0600 Subject: [PATCH 096/160] Rename test_code_samples.py to Section #3/test_code_samples.py --- test_code_samples.py => Section #3/test_code_samples.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename test_code_samples.py => Section #3/test_code_samples.py (100%) diff --git a/test_code_samples.py b/Section #3/test_code_samples.py similarity index 100% rename from test_code_samples.py rename to Section #3/test_code_samples.py From 9bb7f28437fd01fd08d865aa2c6f27d35ccce17f Mon Sep 17 00:00:00 2001 From: Bit77 Date: Tue, 3 Feb 2026 10:30:56 -0600 Subject: [PATCH 097/160] Rename Section #3/test_code_samples.py to test_code_samples.py --- Section #3/test_code_samples.py => test_code_samples.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Section #3/test_code_samples.py => test_code_samples.py (100%) diff --git a/Section #3/test_code_samples.py b/test_code_samples.py similarity index 100% rename from Section #3/test_code_samples.py rename to test_code_samples.py From 5c91ac43edee4de481473b7ec906f52e782e4cdc Mon Sep 17 00:00:00 2001 From: Bit77 Date: Mon, 9 Feb 2026 18:30:53 -0600 Subject: [PATCH 098/160] Add files via upload --- Atlis.py | 26 ++ Atlis2.py | 815 +++++++++++++++++++++++++++++++++++++++++++++ BAGP.py | 40 +++ Lichess.py | 47 +++ Stars.py | 214 ++++++++++++ cw_sig_distance.py | 31 ++ 6 files changed, 1173 insertions(+) create mode 100644 Atlis.py create mode 100644 Atlis2.py create mode 100644 BAGP.py create mode 100644 Lichess.py create mode 100644 Stars.py create mode 100644 cw_sig_distance.py diff --git a/Atlis.py b/Atlis.py new file mode 100644 index 0000000..433c27c --- /dev/null +++ b/Atlis.py @@ -0,0 +1,26 @@ +##===============## +## Atlis.py ## +## ATLIS ## +## DATE: 1/17/26 ## +## +##===============## +locals() +## +locals() +## +locals() +## +locals() +## +locals() +## +locals() +## +locals() +## +locals() +## +locals() +## +locals() +##### shows locals ##### diff --git a/Atlis2.py b/Atlis2.py new file mode 100644 index 0000000..b6d31ef --- /dev/null +++ b/Atlis2.py @@ -0,0 +1,815 @@ +##===============## +## Atlis2.py-----## +## -=-=-=-=-=-=-=## +## DATE: 1/17/26 ## +##===============## + +##1. Command line and environment +##The CPython interpreter scans the command line and the environment for various settings. +## +##CPython implementation detail: Other implementations’ command line schemes may differ. See Alternate Implementations for further resources. +## +##1.1. Command line +##When invoking Python, you may specify any of these options: +## +##python [-bBdEhiIOPqRsSuvVWx?] [-c command | -m module-name | script | - ] [args] +##The most common use case is, of course, a simple invocation of a script: +## +##python myscript.py +##1.1.1. Interface options +##The interpreter interface resembles that of the UNIX shell, but provides some additional methods of invocation: +## +##When called with standard input connected to a tty device, it prompts for commands and executes them until an EOF (an end-of-file character, you can produce that with Ctrl-D on UNIX or Ctrl-Z, Enter on Windows) is read. For more on interactive mode, see Interactive Mode. +## +##When called with a file name argument or with a file as standard input, it reads and executes a script from that file. +## +##When called with a directory name argument, it reads and executes an appropriately named script from that directory. +## +##When called with -c command, it executes the Python statement(s) given as command. Here command may contain multiple statements separated by newlines. Leading whitespace is significant in Python statements! +## +##When called with -m module-name, the given module is located on the Python module path and executed as a script. +## +##In non-interactive mode, the entire input is parsed before it is executed. +## +##An interface option terminates the list of options consumed by the interpreter, all consecutive arguments will end up in sys.argv – note that the first element, subscript zero (sys.argv[0]), is a string reflecting the program’s source. +## +##-c +##Execute the Python code in command. command can be one or more statements separated by newlines, with significant leading whitespace as in normal module code. +## +##If this option is given, the first element of sys.argv will be "-c" and the current directory will be added to the start of sys.path (allowing modules in that directory to be imported as top level modules). +## +##Raises an auditing event cpython.run_command with argument command. +## +##-m +##Search sys.path for the named module and execute its contents as the __main__ module. +## +##Since the argument is a module name, you must not give a file extension (.py). The module name should be a valid absolute Python module name, but the implementation may not always enforce this (e.g. it may allow you to use a name that includes a hyphen). +## +##Package names (including namespace packages) are also permitted. When a package name is supplied instead of a normal module, the interpreter will execute .__main__ as the main module. This behaviour is deliberately similar to the handling of directories and zipfiles that are passed to the interpreter as the script argument. +## +##Note This option cannot be used with built-in modules and extension modules written in C, since they do not have Python module files. However, it can still be used for precompiled modules, even if the original source file is not available. +##If this option is given, the first element of sys.argv will be the full path to the module file (while the module file is being located, the first element will be set to "-m"). As with the -c option, the current directory will be added to the start of sys.path. +## +##-I option can be used to run the script in isolated mode where sys.path contains neither the current directory nor the user’s site-packages directory. All PYTHON* environment variables are ignored, too. +## +##Many standard library modules contain code that is invoked on their execution as a script. An example is the timeit module: +## +##python -m timeit -s "setup here" "benchmarked code here" +##python -m timeit -h # for details +##Raises an auditing event cpython.run_module with argument module-name. +## +##See also +##runpy.run_module() +##Equivalent functionality directly available to Python code +## +##PEP 338 – Executing modules as scripts +## +##Changed in version 3.1: Supply the package name to run a __main__ submodule. +## +##Changed in version 3.4: namespace packages are also supported +## +##- +##Read commands from standard input (sys.stdin). If standard input is a terminal, -i is implied. +## +##If this option is given, the first element of sys.argv will be "-" and the current directory will be added to the start of sys.path. +## +##Raises an auditing event cpython.run_stdin with no arguments. +## +##