Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
dc75590
Merge pull request #1 from The3DP/The3DP-patch-1
The3DP Oct 18, 2025
7aee092
Delete Section #2/Seg-0.py
The3DP Oct 18, 2025
f63e0b3
Delete Section #2/Seg-6.py
The3DP Oct 18, 2025
1b0f6aa
Delete Section #2/Seg-7.py
The3DP Oct 18, 2025
0a35a46
Delete Section #2/Seg-8.py
The3DP Oct 18, 2025
cf3e3a4
Delete Section #2/Seg-9.py
The3DP Oct 18, 2025
1028c9c
Add files via upload
The3DP Oct 18, 2025
48c265f
Merge pull request #2 from The3DP/The3DP-patch-2
The3DP Oct 18, 2025
d8cda6b
Rename DIP1.py to Suspect.py
The3DP Oct 18, 2025
1cbf50a
Add files via upload
The3DP Oct 20, 2025
28756ba
Merge pull request #3 from The3DP/The3DP-patch-3
The3DP Oct 20, 2025
ccfe3a4
Rename TankTracker.py to Section #2/TankTracker.py
The3DP Oct 20, 2025
4fe353c
Create python-publish.yml
The3DP Oct 20, 2025
a5eb1d4
Create python-app.yml
The3DP Oct 30, 2025
7433d67
Create Code_Overload.py
The3DP Oct 30, 2025
b1d2de2
Update Code_Overload.py
The3DP Oct 30, 2025
91bb053
Update Code_Overload.py
The3DP Oct 30, 2025
a4a17ee
Update Code_Overload.py
The3DP Oct 30, 2025
0d490be
Create art_work.py
The3DP Oct 30, 2025
024b9a1
Update and rename art_work.py to Section #2/art_work.py
The3DP Oct 30, 2025
a0e63e7
Update and rename Code_Overload.py to code_overload.py
The3DP Oct 30, 2025
a6ce66c
Update and rename code_overload.py to Section #2/code_overload.py
The3DP Oct 30, 2025
3e47035
Update code_overload.py
The3DP Oct 30, 2025
8c30ccd
Update art_work.py
The3DP Oct 30, 2025
f47c2cd
Update art_work.py
The3DP Oct 30, 2025
b0afe27
Update art_work.py
The3DP Oct 31, 2025
b4f387a
Add files via upload
The3DP Oct 31, 2025
c2b6913
Update clock.py
The3DP Oct 31, 2025
80b15b6
Add files via upload
The3DP Oct 31, 2025
ce70bd7
Merge pull request #4 from The3DP/The3DP-pull-patch
The3DP Oct 31, 2025
45c566f
Rename Rifleman.py to if-action.py
The3DP Oct 31, 2025
de6725f
Update if-action.py
The3DP Oct 31, 2025
45a4acf
Update if-action.py
The3DP Oct 31, 2025
a89539c
Update TURTLE.py
The3DP Oct 31, 2025
b92e5a3
Add files via upload
The3DP Oct 31, 2025
8edab8a
Merge pull request #5 from The3DP/The3DP-pull-merge
The3DP Oct 31, 2025
b3b7c5f
Update and rename if-action.py to Section #2/if-action.py
The3DP Oct 31, 2025
f3a6fe0
Rename TURTLE.py to Section #2/TURTLE (With #).py
The3DP Oct 31, 2025
efd4e21
Update Madlibs.py
The3DP Oct 31, 2025
b0ac6de
Update and rename Madlibs.py to Section #2/Madlibs.py
The3DP Oct 31, 2025
7f1bc02
Update continue-example.py
The3DP Oct 31, 2025
a221b7e
Update continue-example.py
The3DP Oct 31, 2025
8b4a67c
Update continue-example.py
The3DP Oct 31, 2025
c319b32
Update code_overload.py
The3DP Nov 2, 2025
316c925
Update clock.py
The3DP Nov 2, 2025
b7a081b
Update and rename TURTLE (With #).py to TURTLE(com).py
The3DP Nov 2, 2025
9d2a5d5
Update clock.py
The3DP Nov 2, 2025
fe13b0e
Update clock.py
The3DP Nov 2, 2025
238c232
Create test_code_samples.py
The3DP Nov 2, 2025
d66cdb7
Update test_code_samples.py
The3DP Nov 2, 2025
c1510f5
Add files via upload
The3DP Nov 3, 2025
bfdd908
Merge pull request #6 from The3DP/The3DP-patch-3
The3DP Nov 3, 2025
426f061
Rename section3-week10-daren-neyland-multiplication-table.py to multi…
The3DP Nov 3, 2025
f5646c1
Update multiplication_table.py
The3DP Nov 3, 2025
51daab5
Update multiplication_table.py
The3DP Nov 3, 2025
1f492c1
Update multiplication_table.py
The3DP Nov 3, 2025
7ccffdd
Update multiplication_table.py
The3DP Nov 3, 2025
241bd1b
Rename multiplication_table.py to Section #2/multiplication_table.py
The3DP Nov 3, 2025
42efb43
Update continue-example.py
The3DP Nov 3, 2025
7e12c80
Update and rename continue-example.py to Section #2/continue-example.py
The3DP Nov 3, 2025
5b6cc9e
Update and rename Madlibs.py to Section #2/Madlibs_.py
The3DP Nov 3, 2025
3e09c89
Update Madlibs.py
The3DP Nov 3, 2025
fccc7b4
Update Madlibs_.py
The3DP Nov 3, 2025
1cd6eec
Update Madlibs_.py
The3DP Nov 3, 2025
d9c61ab
Update Madlibs_.py
The3DP Nov 3, 2025
5ab99df
Update Madlibs_.py
The3DP Nov 3, 2025
229d368
Update Madlibs_.py
The3DP Nov 3, 2025
503b8be
Update and rename Madlibs_.py to Madlibs_2.py
The3DP Nov 3, 2025
4df3ca9
Create static.yml
The3DP Nov 5, 2025
6724ff1
Create gazebo.py
The3DP Nov 15, 2025
b6f0aaf
Create exit_program.py
The3DP Nov 15, 2025
df06825
Create turtle_test.py
The3DP Nov 15, 2025
8419f83
Create word.py
The3DP Nov 15, 2025
3ec3471
Create for_var.py
The3DP Nov 15, 2025
62cc61e
Create interrogation.py
The3DP Nov 15, 2025
2a47559
Create tello_port.py
The3DP Nov 15, 2025
434cddb
Create tello_vid.py
The3DP Nov 15, 2025
67086b2
Create func.py
The3DP Nov 15, 2025
0cf84b7
Create cater.py
The3DP Nov 15, 2025
1c99c89
Create simp_ai.py
The3DP Nov 15, 2025
46a4154
Create tello_path.py
The3DP Nov 15, 2025
4b570be
Create bool_var.py
The3DP Nov 15, 2025
f2b8592
Create tello_bottom_cam.py
The3DP Nov 15, 2025
a69cd74
Update and rename Seg-1.py to CD-1.py
The3DP Nov 25, 2025
bbc87ce
Rename Section #1/Seg-2.py to Section CD-2.py
The3DP Nov 25, 2025
a88fc83
Update and rename Section CD-2.py to Section #1/ CD-2.py
The3DP Nov 25, 2025
1af2c22
Rename Seg-3.py to CD-3.py
The3DP Nov 25, 2025
06e49e7
Update and rename Seg-4.py to CD-4.py
The3DP Nov 25, 2025
11a201f
Rename Seg-5.py to CD-5.py
The3DP Nov 25, 2025
d3a151d
Update turtle_test.py
The3DP Nov 25, 2025
8c6f5a3
Create TinkerCAD (Bit77)
The3DP Nov 25, 2025
6d675b9
Update TinkerCAD (Bit77)
The3DP Nov 25, 2025
9330d39
Update TinkerCAD (Bit77)
The3DP Nov 25, 2025
b49acd8
Add files via upload
The3DP Feb 2, 2026
8aa1345
Add work in progress note to ZookeeperCP.py
The3DP Feb 2, 2026
2b0dfc5
Revise header comments and add progress note
The3DP Feb 2, 2026
9adf171
Rename ZookeeperCP.py to Section #3/ZookeeperCP.py
The3DP Feb 3, 2026
f2404e9
Rename cpu_pendown.py to Section #3/cpu_pendown.py
The3DP Feb 3, 2026
ad743b0
Rename Morse Code Translator.py to Morse_code_translator.py
The3DP Feb 3, 2026
4fec8a3
Rename Morse_code_translator.py to Section #3/mmorse_code_translator.py
The3DP Feb 3, 2026
a83ca44
Rename cursor_run.py to Section #3/cursor_run.py
The3DP Feb 3, 2026
deee547
Rename test_code_samples.py to Section #3/test_code_samples.py
The3DP Feb 3, 2026
9bb7f28
Rename Section #3/test_code_samples.py to test_code_samples.py
The3DP Feb 3, 2026
5c91ac4
Add files via upload
The3DP Feb 10, 2026
6faca36
Rename Atlis.py to Section #3/Atlis.py
The3DP Feb 10, 2026
e4d0546
Rename Atlis2.py to Section #3/Atlis2.py
The3DP Feb 10, 2026
a03727a
Rename BAGP.py to Section #3/BAGP.py
The3DP Feb 10, 2026
5a12d88
Rename Lichess.py to Section #3/Lichess.py
The3DP Feb 10, 2026
97c91fe
Rename Stars.py to Section #3/Stars.py
The3DP Feb 10, 2026
d590607
Rename cw_sig_distance.py to Section #3/cw_sig_distance.py
The3DP Feb 10, 2026
00381cb
Update comment for clarity in test_code_samples.py
The3DP Feb 10, 2026
7e5b73b
Update tello_port.py
The3DP Feb 10, 2026
69c8b72
Comment out drone takeoff and video capture code
The3DP Feb 10, 2026
ea45b1d
Comment out game statistics variables
The3DP Feb 10, 2026
5821186
Update for_var.py
The3DP Feb 10, 2026
50ca507
Fix indentation and remove extra newline in func.py
The3DP Feb 10, 2026
68ff7b4
Refactor add function and improve user input
The3DP Feb 10, 2026
3ef22b0
Comment out send_command for bottom camera
The3DP Feb 10, 2026
f317e73
Update word.py
The3DP Feb 10, 2026
0ed88e5
Update BAGP.py
The3DP Feb 10, 2026
c0d09d6
Fix account variable assignment syntax
The3DP Feb 10, 2026
eb4a6ec
Update exit_program.py
The3DP Feb 10, 2026
d994bb7
Clean up imports and installation in simp_ai.py
The3DP Feb 10, 2026
0b35947
Update simp_ai.py
The3DP Feb 10, 2026
9bc340d
Update turtle_test.py
The3DP Feb 10, 2026
c6b6caa
Update BAGP.py
The3DP Feb 10, 2026
126f5bf
Update BAGP.py
The3DP Feb 10, 2026
8be901f
Update BAGP.py
The3DP Feb 10, 2026
bf0882d
Update BAGP.py
The3DP Feb 10, 2026
0e3c4f7
Update BAGP.py
The3DP Feb 10, 2026
99885a6
Update opponent details and ratings in BAGP.py
The3DP Feb 10, 2026
ee7bf09
Update BAGP.py
The3DP Feb 10, 2026
f6ba433
Update header comments in BAGP.py
The3DP Feb 10, 2026
5a07f6a
Rename BAGP.py to BLGP.py
The3DP Feb 10, 2026
3373cbf
Update and rename BLGP.py to LLGP.py
The3DP Feb 10, 2026
8745dfd
Fix opponent1 variable assignment to be a string
The3DP Feb 10, 2026
7f4063b
Remove exit_program function and user interaction logic
The3DP Feb 10, 2026
0a51fff
Update exit_program.py
The3DP Feb 10, 2026
c7097e7
Update turtle_test.py
The3DP Feb 10, 2026
bf1d201
Update turtle_test.py
The3DP Feb 10, 2026
c3cba9b
Update turtle_test.py
The3DP Feb 10, 2026
c633980
Create collected_errors.py
The3DP Feb 10, 2026
3d1fa05
Update README.md
The3DP Feb 10, 2026
77c0e85
Update README.md
The3DP Feb 10, 2026
57de21c
Update collected_errors.py
The3DP Feb 10, 2026
873089f
Create multi_word_dictionary_example.py
The3DP Feb 10, 2026
0650006
Update turtle_test.py
The3DP Feb 10, 2026
0b8f65d
Update README.md
The3DP Feb 10, 2026
16a4ed1
Create var_storage.py
The3DP Feb 10, 2026
3af6270
Update var_storage.py
The3DP Feb 10, 2026
c4bdf9a
Rename collected_errors.py to Section #4/collected_errors.py
The3DP Feb 10, 2026
b0be68e
Rename multi_word_dictionary_example.py to Section #4/multi_word_dict…
The3DP Feb 10, 2026
e78bcef
Update multi_word_dictionary_example.py
The3DP Feb 10, 2026
7616697
Rename var_storage.py to Section #4/var_storage.py
The3DP Feb 10, 2026
9b01e52
Update multi_word_dictionary_example.py
The3DP Feb 10, 2026
1a81dc4
Update multi_word_dictionary_example.py
The3DP Feb 10, 2026
3beb0cf
Update README.md
The3DP Feb 10, 2026
d065bfd
Update README.md
The3DP Feb 10, 2026
943af59
Create lichess_blogs_updater.json
The3DP Feb 11, 2026
cac2ae7
Rename lichess_blogs_updater.json to lichess_blogs_updater.js
The3DP Feb 11, 2026
09e284d
Update README.md
The3DP Feb 18, 2026
a24d1c2
Create cool_background_photos.md
The3DP Feb 18, 2026
dbd9200
Update and rename cool_background_photos.md to Others/cool_background…
The3DP Feb 18, 2026
ee9648e
Update cool_background_photos.md
The3DP Feb 18, 2026
0cc51f4
Update cool_background_photos.md
The3DP Feb 18, 2026
a83569c
Update cool_background_photos.md
The3DP Feb 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -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
70 changes: 70 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -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/
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions HTML (embeds)/TinkerCAD (Bit77)
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- Copy and paste this into an HTML running site -->

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/fxFEH4hgoeF?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/bwSyLjy6nWE?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/bp2Fj7KCjG5?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/5zDMK0PuQzs?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/4CD8CxAPjoD?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/42sGfumpWVo?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/5LlcdIU6cDr?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/3thDEg2x4nn?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<iframe width="725" height="453" src="https://www.tinkercad.com/embed/8J1FnzR3osp?editbtn=1&simlab=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

<!-- More coming soon! -->
36 changes: 36 additions & 0 deletions Others/cool_background_photos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
![IMG_1049](https://github.com/user-attachments/assets/83ae47e9-61a1-437b-856d-05b8c344f401)
![IMG_0111](https://github.com/user-attachments/assets/612cc24e-6af3-4296-a18c-a8c85bf55012)
![IMG_0137](https://github.com/user-attachments/assets/f2fe0229-37f5-41d1-86f2-ad400f46080e)
![IMG_0171 2](https://github.com/user-attachments/assets/cbc9ce65-227f-4e9d-8e31-55b264d9e7e5)
![IMG_0244](https://github.com/user-attachments/assets/a3851cd2-b10b-4c66-9203-ac3a16449bd6)
![IMG_0263](https://github.com/user-attachments/assets/47129705-40b2-4acd-aa9e-65b16ebda61a)
![IMG_1064](https://github.com/user-attachments/assets/ddfeae62-ac7d-4331-ab82-8f801050ad99)
![IMG_1093](https://github.com/user-attachments/assets/ad4fa8a9-e717-47e9-aba3-d0f412e62c32)
![IMG_1141](https://github.com/user-attachments/assets/5a13c9fa-3908-4bdb-b1da-d3a7e694a45f)
![IMG_1128](https://github.com/user-attachments/assets/6cb8ae91-ca7c-4ec4-bcdf-36f437ba9bb2)
![IMG_1769](https://github.com/user-attachments/assets/c59df4b4-f288-4f5b-b14f-6d8b215f2c69)
![IMG_1773](https://github.com/user-attachments/assets/ec129328-3b23-4a60-bda8-6dcfa2e11810)
![IMG_1772](https://github.com/user-attachments/assets/e2a00e17-13b1-4025-8802-125c8ab7959a)
![IMG_1782](https://github.com/user-attachments/assets/10153fbe-6b02-4658-bff0-6e4eb74b284a)
![IMG_1781](https://github.com/user-attachments/assets/683ab382-63c3-4446-91dc-de36d9a1d01b)
![IMG_1779](https://github.com/user-attachments/assets/bd3223d0-1359-4230-8556-e8b3c9936d80)
![IMG_1778](https://github.com/user-attachments/assets/19aec34c-0304-431a-a1a1-252d21f77856)
![IMG_1777](https://github.com/user-attachments/assets/215d9585-9eac-4aa2-864d-7e802333b01e)
![IMG_1800](https://github.com/user-attachments/assets/a6188538-1f6c-4579-8f0a-6194dceb2c6e)
![IMG_1771](https://github.com/user-attachments/assets/8028969a-d00b-4507-8825-815690198c1c)
![IMG_1770](https://github.com/user-attachments/assets/08bbe3f6-bd6d-4004-8700-91f8568e74a2)
![IMG_1776](https://github.com/user-attachments/assets/521157bd-7ce3-4d3a-8b01-abf2d54cca33)
![IMG_1775](https://github.com/user-attachments/assets/5b00f64f-9b09-46aa-960c-2bc89b509e05)
![IMG_1774](https://github.com/user-attachments/assets/a9946210-9ea8-403f-9cc9-f71e15cac263)
![IMG_1784](https://github.com/user-attachments/assets/3c7d0e13-3998-41fe-8d96-bc6a243d9bd3)
![IMG_1768](https://github.com/user-attachments/assets/0e5089ba-9b92-4964-b9c8-fad7eabd6f26)
![IMG_1853](https://github.com/user-attachments/assets/e6b09b5f-e008-496c-8609-2f4aa09e7183)
![IMG_1852](https://github.com/user-attachments/assets/b78fc59c-bf55-4522-8d50-1df96898e9e8)
![IMG_1850](https://github.com/user-attachments/assets/19925f50-f00c-4c0c-9f4e-520f81d0e415)
![IMG_1849](https://github.com/user-attachments/assets/6d5ce77f-5e0e-4289-9675-72cf24a4fb0e)
![IMG_1848](https://github.com/user-attachments/assets/cd6f9f22-c35d-4882-9f68-b77d78925e94)
![IMG_1847](https://github.com/user-attachments/assets/e126b48f-07bf-4712-97c3-643744c4612b)
![IMG_1890](https://github.com/user-attachments/assets/81f44955-1c4d-4801-81af-3fb74b45f272)
![IMG_1889](https://github.com/user-attachments/assets/d24b4e20-d657-4353-872f-7b0380a53f03)
![IMG_1846](https://github.com/user-attachments/assets/c96e0cbd-274b-44a8-b6fe-2c86040a7ea2)
![IMG_1846 2](https://github.com/user-attachments/assets/a56df7bd-a52c-493a-acc8-a47ba30bfe09)
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# Code-Samples
This repository consists of a multitude of code samples. Varieties of these travel from simple to complex, big to small, and cool to cooler. Soon, this repository will be completely filled.
This repository consists of a multitude of code samples (among a few other things).
Varieties of these travel from simple to complex, big to small, and dull to cool. Soon, this repository will be completely filled.
### Last edited:
2/9/2026 (*Februrary 3rd, 2026*)

### *Progress:*
![100% Complete](https://img.shields.io/badge/Progress-100%25-darkgreen)

However, additional files and improvements never fail to deliver :)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions Section #1/bool_var.py
Original file line number Diff line number Diff line change
@@ -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")
26 changes: 26 additions & 0 deletions Section #1/cater.py
Original file line number Diff line number Diff line change
@@ -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.")
80 changes: 80 additions & 0 deletions Section #1/exit_program.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import time
import os
from enum import Enum


class UserChoice(Enum):
"""Enum for user choices to improve code readability."""
EXIT = 1
CONTINUE = 0


def get_user_choice() -> int:
"""
Prompt user for input and return a valid choice (0 or 1).

Returns:
int: 0 to continue or 1 to exit
"""
while True:
user_input = input("\nPlease enter your choice (1 to exit, 0 to continue): ").strip()

if user_input not in ('0', '1'):
print("Error: Invalid input. Please enter only 0 or 1.")
continue

return int(user_input)


def exit_program():
"""
Manage user interaction for exiting or continuing the program.
"""
print("Welcome to the program!")
print("This program allows you to either continue or exit.")
print("Enter '1' to exit or '0' to continue.")

choice = get_user_choice()

if choice == UserChoice.EXIT.value:
_handle_exit()
else:
_handle_continue()

# Log the action
log_action(choice)


def _handle_exit():
"""Handle exit logic."""
print("\nYou have chosen to exit the program. Goodbye!")
print("Exiting the program... Saving progress and shutting down.")
time.sleep(2) # Simulate saving progress
# Add cleanup code here if needed (close files, save data, etc.)


def _handle_continue():
"""Handle continue logic."""
print("\nYou have chosen to continue. The program will continue running.")
perform_task()


def perform_task():
"""
Execute the next task in the program.
"""
print("Performing the next task...")
# Add your task logic here


def log_action(choice: int) -> None:
"""
Log user action for debugging/tracking purposes.

Args:
choice: The user's choice (0 or 1)
"""
action = "exit" if choice == UserChoice.EXIT.value else "continue"
# Implement logging (file, database, etc.)
# Example: logger.info(f"User chose to {action}")
pass
3 changes: 3 additions & 0 deletions Section #1/for_var.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#create a for loop
for varible in range(50):
print ("CHRISTMAS IS ALMOST OVER!!!")
11 changes: 11 additions & 0 deletions Section #1/func.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Get user input
number1 = int(input("Enter a number: "))
number2 = int(input("Enter a second number: "))

def add(num1, num2):
"""Add two numbers and return the result."""
return num1 + num2

# Call the function and display the result
result = add(number1, number2)
print(f"The sum of {number1} and {number2} is {result}")
23 changes: 23 additions & 0 deletions Section #1/gazebo.py
Original file line number Diff line number Diff line change
@@ -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()
Loading