From 99c72ac7e3e76413b3e85f5fc7306622565b30c9 Mon Sep 17 00:00:00 2001 From: NPinn Date: Wed, 11 Dec 2024 11:38:12 +0000 Subject: [PATCH 01/12] Commiting Jupyter Notebook file --- .ipynb_checkpoints/README-checkpoint.md | 25 ++ .../wrapping_calculations-checkpoint.ipynb | 213 ++++++++++++++++++ wrapping_calculations.ipynb | 213 ++++++++++++++++++ 3 files changed, 451 insertions(+) create mode 100644 .ipynb_checkpoints/README-checkpoint.md create mode 100644 .ipynb_checkpoints/wrapping_calculations-checkpoint.ipynb create mode 100644 wrapping_calculations.ipynb diff --git a/.ipynb_checkpoints/README-checkpoint.md b/.ipynb_checkpoints/README-checkpoint.md new file mode 100644 index 0000000..927bf54 --- /dev/null +++ b/.ipynb_checkpoints/README-checkpoint.md @@ -0,0 +1,25 @@ +# git_tutorial +This is a basic tutorial for new users to play around with git. + +# Contribute to this repository! +1. Create a Fork +2. Change something +3. Create a pull request + + +# Basic git commands: +repo -> repository + +clone -> bring a repo down from the internet (remote repository like Github) to your local machine + +add -> track your files and changes with Git + +commit -> save your changes into Git + +push -> push your changes to your remote repo on Github (or another website) + +pull -> pull changes down from the remote repo to your local machine + +status -> check to see which files are being tracked or need to be commited + +init -> use this command inside of your project to turn it into a Git repository and start using Git with that codebase diff --git a/.ipynb_checkpoints/wrapping_calculations-checkpoint.ipynb b/.ipynb_checkpoints/wrapping_calculations-checkpoint.ipynb new file mode 100644 index 0000000..da31759 --- /dev/null +++ b/.ipynb_checkpoints/wrapping_calculations-checkpoint.ipynb @@ -0,0 +1,213 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "81e1e97f-168f-4889-86c2-b78711e3cc76", + "metadata": {}, + "source": [ + "## Import Useful Packages" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "c2e102f5-30f7-488b-9fed-ea7368650550", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import re\n", + "\n", + "import random" + ] + }, + { + "cell_type": "markdown", + "id": "f2e90543-5823-4aeb-80a4-371d3189eef7", + "metadata": {}, + "source": [ + "## Import Input Data" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "5e493a97-b997-488a-b3ca-a96e1288dc17", + "metadata": {}, + "outputs": [], + "source": [ + "list_of_presents_df = pd.read_csv('list_of_presents.csv')" + ] + }, + { + "cell_type": "markdown", + "id": "1d5a014d-9189-4770-9304-95d57e5f1444", + "metadata": {}, + "source": [ + "### Convert DataFrame Column to List" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "69319d09-e3b8-48ea-a940-0a87dc4eb8f0", + "metadata": {}, + "outputs": [], + "source": [ + "list_of_presenets = list_of_presents_df['Box Dimensions'].to_list()\n", + "\n", + "del list_of_presents_df" + ] + }, + { + "cell_type": "markdown", + "id": "e39a8a86-2fab-4c6a-af28-c5627c62ba18", + "metadata": {}, + "source": [ + "## Calculate Wrapping Paper & Ribbon Needed for each Box" + ] + }, + { + "cell_type": "markdown", + "id": "95827c79-c208-4568-aa59-08f21e7fc1c8", + "metadata": {}, + "source": [ + "### Initialise Data Catch-Alls" + ] + }, + { + "cell_type": "markdown", + "id": "a83f75ca-30b2-45e6-909b-d353ba119f85", + "metadata": {}, + "source": [ + "#### Wrapping Paper Catch-Alls" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "4f18f081-249a-494f-8fe6-c832f46af1ff", + "metadata": {}, + "outputs": [], + "source": [ + "full_list = []\n", + "combined_wrapping_paper_total = 0\n", + "combined_ribbon_total = 0" + ] + }, + { + "cell_type": "markdown", + "id": "5f58d089-27c6-41cc-b0ad-f54a901f7d2d", + "metadata": {}, + "source": [ + "### Loop through list of Boxes and Calculate Required Wrapping Paper & Ribbon Required" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "0b4bf1bf-8fa0-4f0c-8cd9-a0b46c547eeb", + "metadata": { + "scrolled": true + }, + "outputs": [], + "source": [ + "for present in list_of_presenets:\n", + " # Split and get Int values for each boxes dimensions\n", + " dimensions = list(map(int, present.split('x')))\n", + " # Sort Dimensions so that smallest measures are always in positions 0 and 1\n", + " dimensions.sort(reverse=False)\n", + " # Get all individual dimension calculations\n", + " smallest_dimension = dimensions[0]*dimensions[1]\n", + " second_dimension = dimensions[0]*dimensions[2]\n", + " third_dimension = dimensions[2]*dimensions[1]\n", + " # Get Box Volume\n", + " box_volume = dimensions[0]*dimensions[1]*dimensions[2]\n", + " # Calculate Wrapping Paper Required for Box\n", + " wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension\n", + " # Add to Wrapping Paper Catch-All Calculation\n", + " combined_wrapping_paper_total+= wrapping_paper_total\n", + " # Calculate Ribbon Needed for Box\n", + " ribbon_total = smallest_dimension+box_volume\n", + " # Add to Ribbon Catch-All Calculation\n", + " combined_ribbon_total += ribbon_total\n", + " #Append all Results to full list\n", + " full_list.append([dimensions, wrapping_paper_total, ribbon_total])" + ] + }, + { + "cell_type": "markdown", + "id": "403501c1-71fd-45a3-8764-034c20560206", + "metadata": {}, + "source": [ + "## Print Results" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "051da069-5712-46b3-b07d-f41fc9c2c24b", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Calculated Wrapping Paper Total: 18634\n" + ] + } + ], + "source": [ + "print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}')" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "f9b72836-6511-48d5-a421-149ea2814469", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Calculated Ribbon Total: 16709\n" + ] + } + ], + "source": [ + "print(f'Calculated Ribbon Total: {combined_ribbon_total}')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "9fb582b9-9416-4394-8ad2-afc71db71278", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.9" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/wrapping_calculations.ipynb b/wrapping_calculations.ipynb new file mode 100644 index 0000000..da31759 --- /dev/null +++ b/wrapping_calculations.ipynb @@ -0,0 +1,213 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "81e1e97f-168f-4889-86c2-b78711e3cc76", + "metadata": {}, + "source": [ + "## Import Useful Packages" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "c2e102f5-30f7-488b-9fed-ea7368650550", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import re\n", + "\n", + "import random" + ] + }, + { + "cell_type": "markdown", + "id": "f2e90543-5823-4aeb-80a4-371d3189eef7", + "metadata": {}, + "source": [ + "## Import Input Data" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "5e493a97-b997-488a-b3ca-a96e1288dc17", + "metadata": {}, + "outputs": [], + "source": [ + "list_of_presents_df = pd.read_csv('list_of_presents.csv')" + ] + }, + { + "cell_type": "markdown", + "id": "1d5a014d-9189-4770-9304-95d57e5f1444", + "metadata": {}, + "source": [ + "### Convert DataFrame Column to List" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "69319d09-e3b8-48ea-a940-0a87dc4eb8f0", + "metadata": {}, + "outputs": [], + "source": [ + "list_of_presenets = list_of_presents_df['Box Dimensions'].to_list()\n", + "\n", + "del list_of_presents_df" + ] + }, + { + "cell_type": "markdown", + "id": "e39a8a86-2fab-4c6a-af28-c5627c62ba18", + "metadata": {}, + "source": [ + "## Calculate Wrapping Paper & Ribbon Needed for each Box" + ] + }, + { + "cell_type": "markdown", + "id": "95827c79-c208-4568-aa59-08f21e7fc1c8", + "metadata": {}, + "source": [ + "### Initialise Data Catch-Alls" + ] + }, + { + "cell_type": "markdown", + "id": "a83f75ca-30b2-45e6-909b-d353ba119f85", + "metadata": {}, + "source": [ + "#### Wrapping Paper Catch-Alls" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "4f18f081-249a-494f-8fe6-c832f46af1ff", + "metadata": {}, + "outputs": [], + "source": [ + "full_list = []\n", + "combined_wrapping_paper_total = 0\n", + "combined_ribbon_total = 0" + ] + }, + { + "cell_type": "markdown", + "id": "5f58d089-27c6-41cc-b0ad-f54a901f7d2d", + "metadata": {}, + "source": [ + "### Loop through list of Boxes and Calculate Required Wrapping Paper & Ribbon Required" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "0b4bf1bf-8fa0-4f0c-8cd9-a0b46c547eeb", + "metadata": { + "scrolled": true + }, + "outputs": [], + "source": [ + "for present in list_of_presenets:\n", + " # Split and get Int values for each boxes dimensions\n", + " dimensions = list(map(int, present.split('x')))\n", + " # Sort Dimensions so that smallest measures are always in positions 0 and 1\n", + " dimensions.sort(reverse=False)\n", + " # Get all individual dimension calculations\n", + " smallest_dimension = dimensions[0]*dimensions[1]\n", + " second_dimension = dimensions[0]*dimensions[2]\n", + " third_dimension = dimensions[2]*dimensions[1]\n", + " # Get Box Volume\n", + " box_volume = dimensions[0]*dimensions[1]*dimensions[2]\n", + " # Calculate Wrapping Paper Required for Box\n", + " wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension\n", + " # Add to Wrapping Paper Catch-All Calculation\n", + " combined_wrapping_paper_total+= wrapping_paper_total\n", + " # Calculate Ribbon Needed for Box\n", + " ribbon_total = smallest_dimension+box_volume\n", + " # Add to Ribbon Catch-All Calculation\n", + " combined_ribbon_total += ribbon_total\n", + " #Append all Results to full list\n", + " full_list.append([dimensions, wrapping_paper_total, ribbon_total])" + ] + }, + { + "cell_type": "markdown", + "id": "403501c1-71fd-45a3-8764-034c20560206", + "metadata": {}, + "source": [ + "## Print Results" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "051da069-5712-46b3-b07d-f41fc9c2c24b", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Calculated Wrapping Paper Total: 18634\n" + ] + } + ], + "source": [ + "print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}')" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "f9b72836-6511-48d5-a421-149ea2814469", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Calculated Ribbon Total: 16709\n" + ] + } + ], + "source": [ + "print(f'Calculated Ribbon Total: {combined_ribbon_total}')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "9fb582b9-9416-4394-8ad2-afc71db71278", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.9" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} From 87c9371d235c6a487e9c7585bf5ab9883b34e411 Mon Sep 17 00:00:00 2001 From: Nathan Pinnock Date: Wed, 11 Dec 2024 12:14:56 +0000 Subject: [PATCH 02/12] Delete .ipynb_checkpoints directory --- .ipynb_checkpoints/README-checkpoint.md | 25 -- .../wrapping_calculations-checkpoint.ipynb | 213 ------------------ 2 files changed, 238 deletions(-) delete mode 100644 .ipynb_checkpoints/README-checkpoint.md delete mode 100644 .ipynb_checkpoints/wrapping_calculations-checkpoint.ipynb diff --git a/.ipynb_checkpoints/README-checkpoint.md b/.ipynb_checkpoints/README-checkpoint.md deleted file mode 100644 index 927bf54..0000000 --- a/.ipynb_checkpoints/README-checkpoint.md +++ /dev/null @@ -1,25 +0,0 @@ -# git_tutorial -This is a basic tutorial for new users to play around with git. - -# Contribute to this repository! -1. Create a Fork -2. Change something -3. Create a pull request - - -# Basic git commands: -repo -> repository - -clone -> bring a repo down from the internet (remote repository like Github) to your local machine - -add -> track your files and changes with Git - -commit -> save your changes into Git - -push -> push your changes to your remote repo on Github (or another website) - -pull -> pull changes down from the remote repo to your local machine - -status -> check to see which files are being tracked or need to be commited - -init -> use this command inside of your project to turn it into a Git repository and start using Git with that codebase diff --git a/.ipynb_checkpoints/wrapping_calculations-checkpoint.ipynb b/.ipynb_checkpoints/wrapping_calculations-checkpoint.ipynb deleted file mode 100644 index da31759..0000000 --- a/.ipynb_checkpoints/wrapping_calculations-checkpoint.ipynb +++ /dev/null @@ -1,213 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "id": "81e1e97f-168f-4889-86c2-b78711e3cc76", - "metadata": {}, - "source": [ - "## Import Useful Packages" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "id": "c2e102f5-30f7-488b-9fed-ea7368650550", - "metadata": {}, - "outputs": [], - "source": [ - "import pandas as pd\n", - "import numpy as np\n", - "import re\n", - "\n", - "import random" - ] - }, - { - "cell_type": "markdown", - "id": "f2e90543-5823-4aeb-80a4-371d3189eef7", - "metadata": {}, - "source": [ - "## Import Input Data" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "id": "5e493a97-b997-488a-b3ca-a96e1288dc17", - "metadata": {}, - "outputs": [], - "source": [ - "list_of_presents_df = pd.read_csv('list_of_presents.csv')" - ] - }, - { - "cell_type": "markdown", - "id": "1d5a014d-9189-4770-9304-95d57e5f1444", - "metadata": {}, - "source": [ - "### Convert DataFrame Column to List" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "id": "69319d09-e3b8-48ea-a940-0a87dc4eb8f0", - "metadata": {}, - "outputs": [], - "source": [ - "list_of_presenets = list_of_presents_df['Box Dimensions'].to_list()\n", - "\n", - "del list_of_presents_df" - ] - }, - { - "cell_type": "markdown", - "id": "e39a8a86-2fab-4c6a-af28-c5627c62ba18", - "metadata": {}, - "source": [ - "## Calculate Wrapping Paper & Ribbon Needed for each Box" - ] - }, - { - "cell_type": "markdown", - "id": "95827c79-c208-4568-aa59-08f21e7fc1c8", - "metadata": {}, - "source": [ - "### Initialise Data Catch-Alls" - ] - }, - { - "cell_type": "markdown", - "id": "a83f75ca-30b2-45e6-909b-d353ba119f85", - "metadata": {}, - "source": [ - "#### Wrapping Paper Catch-Alls" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "id": "4f18f081-249a-494f-8fe6-c832f46af1ff", - "metadata": {}, - "outputs": [], - "source": [ - "full_list = []\n", - "combined_wrapping_paper_total = 0\n", - "combined_ribbon_total = 0" - ] - }, - { - "cell_type": "markdown", - "id": "5f58d089-27c6-41cc-b0ad-f54a901f7d2d", - "metadata": {}, - "source": [ - "### Loop through list of Boxes and Calculate Required Wrapping Paper & Ribbon Required" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "id": "0b4bf1bf-8fa0-4f0c-8cd9-a0b46c547eeb", - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "for present in list_of_presenets:\n", - " # Split and get Int values for each boxes dimensions\n", - " dimensions = list(map(int, present.split('x')))\n", - " # Sort Dimensions so that smallest measures are always in positions 0 and 1\n", - " dimensions.sort(reverse=False)\n", - " # Get all individual dimension calculations\n", - " smallest_dimension = dimensions[0]*dimensions[1]\n", - " second_dimension = dimensions[0]*dimensions[2]\n", - " third_dimension = dimensions[2]*dimensions[1]\n", - " # Get Box Volume\n", - " box_volume = dimensions[0]*dimensions[1]*dimensions[2]\n", - " # Calculate Wrapping Paper Required for Box\n", - " wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension\n", - " # Add to Wrapping Paper Catch-All Calculation\n", - " combined_wrapping_paper_total+= wrapping_paper_total\n", - " # Calculate Ribbon Needed for Box\n", - " ribbon_total = smallest_dimension+box_volume\n", - " # Add to Ribbon Catch-All Calculation\n", - " combined_ribbon_total += ribbon_total\n", - " #Append all Results to full list\n", - " full_list.append([dimensions, wrapping_paper_total, ribbon_total])" - ] - }, - { - "cell_type": "markdown", - "id": "403501c1-71fd-45a3-8764-034c20560206", - "metadata": {}, - "source": [ - "## Print Results" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "id": "051da069-5712-46b3-b07d-f41fc9c2c24b", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Calculated Wrapping Paper Total: 18634\n" - ] - } - ], - "source": [ - "print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}')" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "id": "f9b72836-6511-48d5-a421-149ea2814469", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Calculated Ribbon Total: 16709\n" - ] - } - ], - "source": [ - "print(f'Calculated Ribbon Total: {combined_ribbon_total}')" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "9fb582b9-9416-4394-8ad2-afc71db71278", - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.11.9" - } - }, - "nbformat": 4, - "nbformat_minor": 5 -} From 473f8d1f609e928d4485465d8208fe7bf5ed2a2a Mon Sep 17 00:00:00 2001 From: Nathan Pinnock Date: Wed, 11 Dec 2024 12:15:06 +0000 Subject: [PATCH 03/12] Delete wrapping_calculations.ipynb --- wrapping_calculations.ipynb | 213 ------------------------------------ 1 file changed, 213 deletions(-) delete mode 100644 wrapping_calculations.ipynb diff --git a/wrapping_calculations.ipynb b/wrapping_calculations.ipynb deleted file mode 100644 index da31759..0000000 --- a/wrapping_calculations.ipynb +++ /dev/null @@ -1,213 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "id": "81e1e97f-168f-4889-86c2-b78711e3cc76", - "metadata": {}, - "source": [ - "## Import Useful Packages" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "id": "c2e102f5-30f7-488b-9fed-ea7368650550", - "metadata": {}, - "outputs": [], - "source": [ - "import pandas as pd\n", - "import numpy as np\n", - "import re\n", - "\n", - "import random" - ] - }, - { - "cell_type": "markdown", - "id": "f2e90543-5823-4aeb-80a4-371d3189eef7", - "metadata": {}, - "source": [ - "## Import Input Data" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "id": "5e493a97-b997-488a-b3ca-a96e1288dc17", - "metadata": {}, - "outputs": [], - "source": [ - "list_of_presents_df = pd.read_csv('list_of_presents.csv')" - ] - }, - { - "cell_type": "markdown", - "id": "1d5a014d-9189-4770-9304-95d57e5f1444", - "metadata": {}, - "source": [ - "### Convert DataFrame Column to List" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "id": "69319d09-e3b8-48ea-a940-0a87dc4eb8f0", - "metadata": {}, - "outputs": [], - "source": [ - "list_of_presenets = list_of_presents_df['Box Dimensions'].to_list()\n", - "\n", - "del list_of_presents_df" - ] - }, - { - "cell_type": "markdown", - "id": "e39a8a86-2fab-4c6a-af28-c5627c62ba18", - "metadata": {}, - "source": [ - "## Calculate Wrapping Paper & Ribbon Needed for each Box" - ] - }, - { - "cell_type": "markdown", - "id": "95827c79-c208-4568-aa59-08f21e7fc1c8", - "metadata": {}, - "source": [ - "### Initialise Data Catch-Alls" - ] - }, - { - "cell_type": "markdown", - "id": "a83f75ca-30b2-45e6-909b-d353ba119f85", - "metadata": {}, - "source": [ - "#### Wrapping Paper Catch-Alls" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "id": "4f18f081-249a-494f-8fe6-c832f46af1ff", - "metadata": {}, - "outputs": [], - "source": [ - "full_list = []\n", - "combined_wrapping_paper_total = 0\n", - "combined_ribbon_total = 0" - ] - }, - { - "cell_type": "markdown", - "id": "5f58d089-27c6-41cc-b0ad-f54a901f7d2d", - "metadata": {}, - "source": [ - "### Loop through list of Boxes and Calculate Required Wrapping Paper & Ribbon Required" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "id": "0b4bf1bf-8fa0-4f0c-8cd9-a0b46c547eeb", - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "for present in list_of_presenets:\n", - " # Split and get Int values for each boxes dimensions\n", - " dimensions = list(map(int, present.split('x')))\n", - " # Sort Dimensions so that smallest measures are always in positions 0 and 1\n", - " dimensions.sort(reverse=False)\n", - " # Get all individual dimension calculations\n", - " smallest_dimension = dimensions[0]*dimensions[1]\n", - " second_dimension = dimensions[0]*dimensions[2]\n", - " third_dimension = dimensions[2]*dimensions[1]\n", - " # Get Box Volume\n", - " box_volume = dimensions[0]*dimensions[1]*dimensions[2]\n", - " # Calculate Wrapping Paper Required for Box\n", - " wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension\n", - " # Add to Wrapping Paper Catch-All Calculation\n", - " combined_wrapping_paper_total+= wrapping_paper_total\n", - " # Calculate Ribbon Needed for Box\n", - " ribbon_total = smallest_dimension+box_volume\n", - " # Add to Ribbon Catch-All Calculation\n", - " combined_ribbon_total += ribbon_total\n", - " #Append all Results to full list\n", - " full_list.append([dimensions, wrapping_paper_total, ribbon_total])" - ] - }, - { - "cell_type": "markdown", - "id": "403501c1-71fd-45a3-8764-034c20560206", - "metadata": {}, - "source": [ - "## Print Results" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "id": "051da069-5712-46b3-b07d-f41fc9c2c24b", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Calculated Wrapping Paper Total: 18634\n" - ] - } - ], - "source": [ - "print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}')" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "id": "f9b72836-6511-48d5-a421-149ea2814469", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Calculated Ribbon Total: 16709\n" - ] - } - ], - "source": [ - "print(f'Calculated Ribbon Total: {combined_ribbon_total}')" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "9fb582b9-9416-4394-8ad2-afc71db71278", - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.11.9" - } - }, - "nbformat": 4, - "nbformat_minor": 5 -} From 2f751aad34c62ada9c87ce1dac3941ed9987c6fd Mon Sep 17 00:00:00 2001 From: NPinn Date: Wed, 11 Dec 2024 12:33:01 +0000 Subject: [PATCH 04/12] Commiting Solution.py --- .ipynb_checkpoints/challenge_1-checkpoint.py | 34 +++++++ .ipynb_checkpoints/solution_n-checkpoint.py | 39 +++++++ list_of_presents.csv | 101 +++++++++++++++++++ solution_n.py | 39 +++++++ 4 files changed, 213 insertions(+) create mode 100644 .ipynb_checkpoints/challenge_1-checkpoint.py create mode 100644 .ipynb_checkpoints/solution_n-checkpoint.py create mode 100644 list_of_presents.csv create mode 100644 solution_n.py diff --git a/.ipynb_checkpoints/challenge_1-checkpoint.py b/.ipynb_checkpoints/challenge_1-checkpoint.py new file mode 100644 index 0000000..80728b3 --- /dev/null +++ b/.ipynb_checkpoints/challenge_1-checkpoint.py @@ -0,0 +1,34 @@ +import csv +import random + +def generate_box_dimensions(num_boxes, seed=None): + """ + Generates random box dimensions in the format LxWxH. + + :param num_boxes: Number of box dimensions to generate + :param seed: Seed for reproducibility + :return: List of box dimensions as strings + """ + if seed is not None: + random.seed(seed) + return [f"{random.randint(1, 10)}x{random.randint(1, 10)}x{random.randint(1, 10)}" for _ in range(num_boxes)] + +def save_to_csv(file_path, data): + """ + Saves a list of data to a CSV file. + + :param file_path: Path to the output CSV file + :param data: List of data to save + """ + with open(file_path, mode='w', newline='') as file: + writer = csv.writer(file) + writer.writerow(["Box Dimensions"]) # Write header + writer.writerows([[dim] for dim in data]) + +if __name__ == "__main__": + # Generate box dimensions + box_dimensions = generate_box_dimensions(100, seed=42) + + # Save to CSV + save_to_csv("list_of_presents.csv", box_dimensions) + print("Box dimensions have been saved to 'list_of_presents.csv'.") diff --git a/.ipynb_checkpoints/solution_n-checkpoint.py b/.ipynb_checkpoints/solution_n-checkpoint.py new file mode 100644 index 0000000..83d593d --- /dev/null +++ b/.ipynb_checkpoints/solution_n-checkpoint.py @@ -0,0 +1,39 @@ +import pandas as pd + +def solution(input_data): + df = pd.read_csv(input_data) + list_of_presenets = df['Box Dimensions'].to_list() + del df + + full_list = [] + combined_wrapping_paper_total = 0 + combined_ribbon_total = 0 + + for present in list_of_presenets: + # Split and get Int values for each boxes dimensions + dimensions = list(map(int, present.split('x'))) + # Sort Dimensions so that smallest measures are always in positions 0 and 1 + dimensions.sort(reverse=False) + # Get all individual dimension calculations + smallest_dimension = dimensions[0]*dimensions[1] + second_dimension = dimensions[0]*dimensions[2] + third_dimension = dimensions[2]*dimensions[1] + # Get Box Volume + box_volume = dimensions[0]*dimensions[1]*dimensions[2] + # Calculate Wrapping Paper Required for Box + wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension + # Add to Wrapping Paper Catch-All Calculation + combined_wrapping_paper_total+= wrapping_paper_total + # Calculate Ribbon Needed for Box + ribbon_total = smallest_dimension+box_volume + # Add to Ribbon Catch-All Calculation + combined_ribbon_total += ribbon_total + #Append all Results to full list + full_list.append([dimensions, wrapping_paper_total, ribbon_total]) + + print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}') + print(f'Calculated Ribbon Total: {combined_ribbon_total}') + + +if __name__ == "__main__": + solution("list_of_presents.csv") \ No newline at end of file diff --git a/list_of_presents.csv b/list_of_presents.csv new file mode 100644 index 0000000..3102b20 --- /dev/null +++ b/list_of_presents.csv @@ -0,0 +1,101 @@ +Box Dimensions +2x1x5 +4x4x3 +2x9x2 +10x7x1 +1x2x4 +4x9x10 +1x9x4 +9x7x4 +8x10x5 +1x3x7 +6x5x3 +4x6x2 +2x7x2 +6x6x10 +5x1x8 +9x2x7 +2x9x5 +10x6x10 +4x2x1 +4x5x2 +4x2x7 +5x8x6 +3x6x6 +4x5x2 +10x3x9 +4x3x8 +7x5x9 +4x6x1 +4x1x6 +7x5x2 +4x10x6 +4x8x7 +8x3x5 +3x4x9 +9x5x10 +7x10x7 +6x4x3 +9x8x2 +1x2x3 +3x7x10 +2x7x7 +10x8x9 +5x9x1 +2x9x5 +6x2x5 +7x3x8 +1x5x9 +3x9x2 +5x9x10 +4x3x6 +3x9x9 +1x10x6 +8x1x2 +6x5x4 +1x4x10 +2x2x8 +2x9x3 +3x8x9 +3x5x9 +10x7x4 +9x4x5 +7x6x8 +9x8x2 +4x4x2 +6x1x10 +9x4x10 +4x1x2 +1x4x2 +1x6x2 +9x4x5 +8x4x9 +3x10x10 +8x4x8 +7x4x2 +2x7x6 +7x7x8 +1x2x1 +7x6x2 +4x4x4 +9x8x3 +7x3x5 +8x4x2 +8x9x2 +1x9x1 +2x4x3 +7x8x8 +4x7x1 +3x7x1 +7x5x8 +5x7x9 +8x3x4 +5x4x1 +10x9x1 +6x1x1 +10x8x9 +9x3x1 +9x2x3 +2x10x2 +4x7x2 +10x4x10 diff --git a/solution_n.py b/solution_n.py new file mode 100644 index 0000000..83d593d --- /dev/null +++ b/solution_n.py @@ -0,0 +1,39 @@ +import pandas as pd + +def solution(input_data): + df = pd.read_csv(input_data) + list_of_presenets = df['Box Dimensions'].to_list() + del df + + full_list = [] + combined_wrapping_paper_total = 0 + combined_ribbon_total = 0 + + for present in list_of_presenets: + # Split and get Int values for each boxes dimensions + dimensions = list(map(int, present.split('x'))) + # Sort Dimensions so that smallest measures are always in positions 0 and 1 + dimensions.sort(reverse=False) + # Get all individual dimension calculations + smallest_dimension = dimensions[0]*dimensions[1] + second_dimension = dimensions[0]*dimensions[2] + third_dimension = dimensions[2]*dimensions[1] + # Get Box Volume + box_volume = dimensions[0]*dimensions[1]*dimensions[2] + # Calculate Wrapping Paper Required for Box + wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension + # Add to Wrapping Paper Catch-All Calculation + combined_wrapping_paper_total+= wrapping_paper_total + # Calculate Ribbon Needed for Box + ribbon_total = smallest_dimension+box_volume + # Add to Ribbon Catch-All Calculation + combined_ribbon_total += ribbon_total + #Append all Results to full list + full_list.append([dimensions, wrapping_paper_total, ribbon_total]) + + print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}') + print(f'Calculated Ribbon Total: {combined_ribbon_total}') + + +if __name__ == "__main__": + solution("list_of_presents.csv") \ No newline at end of file From 74ac97758621923d00fb65b1bea2b12a505a391c Mon Sep 17 00:00:00 2001 From: Nathan Pinnock Date: Fri, 13 Dec 2024 15:07:21 +0000 Subject: [PATCH 05/12] Delete list_of_presents.csv --- list_of_presents.csv | 101 ------------------------------------------- 1 file changed, 101 deletions(-) delete mode 100644 list_of_presents.csv diff --git a/list_of_presents.csv b/list_of_presents.csv deleted file mode 100644 index 3102b20..0000000 --- a/list_of_presents.csv +++ /dev/null @@ -1,101 +0,0 @@ -Box Dimensions -2x1x5 -4x4x3 -2x9x2 -10x7x1 -1x2x4 -4x9x10 -1x9x4 -9x7x4 -8x10x5 -1x3x7 -6x5x3 -4x6x2 -2x7x2 -6x6x10 -5x1x8 -9x2x7 -2x9x5 -10x6x10 -4x2x1 -4x5x2 -4x2x7 -5x8x6 -3x6x6 -4x5x2 -10x3x9 -4x3x8 -7x5x9 -4x6x1 -4x1x6 -7x5x2 -4x10x6 -4x8x7 -8x3x5 -3x4x9 -9x5x10 -7x10x7 -6x4x3 -9x8x2 -1x2x3 -3x7x10 -2x7x7 -10x8x9 -5x9x1 -2x9x5 -6x2x5 -7x3x8 -1x5x9 -3x9x2 -5x9x10 -4x3x6 -3x9x9 -1x10x6 -8x1x2 -6x5x4 -1x4x10 -2x2x8 -2x9x3 -3x8x9 -3x5x9 -10x7x4 -9x4x5 -7x6x8 -9x8x2 -4x4x2 -6x1x10 -9x4x10 -4x1x2 -1x4x2 -1x6x2 -9x4x5 -8x4x9 -3x10x10 -8x4x8 -7x4x2 -2x7x6 -7x7x8 -1x2x1 -7x6x2 -4x4x4 -9x8x3 -7x3x5 -8x4x2 -8x9x2 -1x9x1 -2x4x3 -7x8x8 -4x7x1 -3x7x1 -7x5x8 -5x7x9 -8x3x4 -5x4x1 -10x9x1 -6x1x1 -10x8x9 -9x3x1 -9x2x3 -2x10x2 -4x7x2 -10x4x10 From 5523484ff3c2e013b721b6110db6db4ae907859c Mon Sep 17 00:00:00 2001 From: Nathan Pinnock Date: Fri, 13 Dec 2024 15:07:34 +0000 Subject: [PATCH 06/12] Delete solution_n.py --- solution_n.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 solution_n.py diff --git a/solution_n.py b/solution_n.py deleted file mode 100644 index 83d593d..0000000 --- a/solution_n.py +++ /dev/null @@ -1,39 +0,0 @@ -import pandas as pd - -def solution(input_data): - df = pd.read_csv(input_data) - list_of_presenets = df['Box Dimensions'].to_list() - del df - - full_list = [] - combined_wrapping_paper_total = 0 - combined_ribbon_total = 0 - - for present in list_of_presenets: - # Split and get Int values for each boxes dimensions - dimensions = list(map(int, present.split('x'))) - # Sort Dimensions so that smallest measures are always in positions 0 and 1 - dimensions.sort(reverse=False) - # Get all individual dimension calculations - smallest_dimension = dimensions[0]*dimensions[1] - second_dimension = dimensions[0]*dimensions[2] - third_dimension = dimensions[2]*dimensions[1] - # Get Box Volume - box_volume = dimensions[0]*dimensions[1]*dimensions[2] - # Calculate Wrapping Paper Required for Box - wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension - # Add to Wrapping Paper Catch-All Calculation - combined_wrapping_paper_total+= wrapping_paper_total - # Calculate Ribbon Needed for Box - ribbon_total = smallest_dimension+box_volume - # Add to Ribbon Catch-All Calculation - combined_ribbon_total += ribbon_total - #Append all Results to full list - full_list.append([dimensions, wrapping_paper_total, ribbon_total]) - - print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}') - print(f'Calculated Ribbon Total: {combined_ribbon_total}') - - -if __name__ == "__main__": - solution("list_of_presents.csv") \ No newline at end of file From cc2d7eafd5aa73799d6095848cd9c5031de3ebf3 Mon Sep 17 00:00:00 2001 From: Nathan Pinnock Date: Fri, 13 Dec 2024 15:07:49 +0000 Subject: [PATCH 07/12] Delete .ipynb_checkpoints directory --- .ipynb_checkpoints/challenge_1-checkpoint.py | 34 ----------------- .ipynb_checkpoints/solution_n-checkpoint.py | 39 -------------------- 2 files changed, 73 deletions(-) delete mode 100644 .ipynb_checkpoints/challenge_1-checkpoint.py delete mode 100644 .ipynb_checkpoints/solution_n-checkpoint.py diff --git a/.ipynb_checkpoints/challenge_1-checkpoint.py b/.ipynb_checkpoints/challenge_1-checkpoint.py deleted file mode 100644 index 80728b3..0000000 --- a/.ipynb_checkpoints/challenge_1-checkpoint.py +++ /dev/null @@ -1,34 +0,0 @@ -import csv -import random - -def generate_box_dimensions(num_boxes, seed=None): - """ - Generates random box dimensions in the format LxWxH. - - :param num_boxes: Number of box dimensions to generate - :param seed: Seed for reproducibility - :return: List of box dimensions as strings - """ - if seed is not None: - random.seed(seed) - return [f"{random.randint(1, 10)}x{random.randint(1, 10)}x{random.randint(1, 10)}" for _ in range(num_boxes)] - -def save_to_csv(file_path, data): - """ - Saves a list of data to a CSV file. - - :param file_path: Path to the output CSV file - :param data: List of data to save - """ - with open(file_path, mode='w', newline='') as file: - writer = csv.writer(file) - writer.writerow(["Box Dimensions"]) # Write header - writer.writerows([[dim] for dim in data]) - -if __name__ == "__main__": - # Generate box dimensions - box_dimensions = generate_box_dimensions(100, seed=42) - - # Save to CSV - save_to_csv("list_of_presents.csv", box_dimensions) - print("Box dimensions have been saved to 'list_of_presents.csv'.") diff --git a/.ipynb_checkpoints/solution_n-checkpoint.py b/.ipynb_checkpoints/solution_n-checkpoint.py deleted file mode 100644 index 83d593d..0000000 --- a/.ipynb_checkpoints/solution_n-checkpoint.py +++ /dev/null @@ -1,39 +0,0 @@ -import pandas as pd - -def solution(input_data): - df = pd.read_csv(input_data) - list_of_presenets = df['Box Dimensions'].to_list() - del df - - full_list = [] - combined_wrapping_paper_total = 0 - combined_ribbon_total = 0 - - for present in list_of_presenets: - # Split and get Int values for each boxes dimensions - dimensions = list(map(int, present.split('x'))) - # Sort Dimensions so that smallest measures are always in positions 0 and 1 - dimensions.sort(reverse=False) - # Get all individual dimension calculations - smallest_dimension = dimensions[0]*dimensions[1] - second_dimension = dimensions[0]*dimensions[2] - third_dimension = dimensions[2]*dimensions[1] - # Get Box Volume - box_volume = dimensions[0]*dimensions[1]*dimensions[2] - # Calculate Wrapping Paper Required for Box - wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension - # Add to Wrapping Paper Catch-All Calculation - combined_wrapping_paper_total+= wrapping_paper_total - # Calculate Ribbon Needed for Box - ribbon_total = smallest_dimension+box_volume - # Add to Ribbon Catch-All Calculation - combined_ribbon_total += ribbon_total - #Append all Results to full list - full_list.append([dimensions, wrapping_paper_total, ribbon_total]) - - print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}') - print(f'Calculated Ribbon Total: {combined_ribbon_total}') - - -if __name__ == "__main__": - solution("list_of_presents.csv") \ No newline at end of file From 36ca7ab642399fc49fe0321a24a78ac5350b9ecf Mon Sep 17 00:00:00 2001 From: NPinn Date: Fri, 13 Dec 2024 15:21:11 +0000 Subject: [PATCH 08/12] Commiting solution_n.py File --- solution_n.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 solution_n.py diff --git a/solution_n.py b/solution_n.py new file mode 100644 index 0000000..83d593d --- /dev/null +++ b/solution_n.py @@ -0,0 +1,39 @@ +import pandas as pd + +def solution(input_data): + df = pd.read_csv(input_data) + list_of_presenets = df['Box Dimensions'].to_list() + del df + + full_list = [] + combined_wrapping_paper_total = 0 + combined_ribbon_total = 0 + + for present in list_of_presenets: + # Split and get Int values for each boxes dimensions + dimensions = list(map(int, present.split('x'))) + # Sort Dimensions so that smallest measures are always in positions 0 and 1 + dimensions.sort(reverse=False) + # Get all individual dimension calculations + smallest_dimension = dimensions[0]*dimensions[1] + second_dimension = dimensions[0]*dimensions[2] + third_dimension = dimensions[2]*dimensions[1] + # Get Box Volume + box_volume = dimensions[0]*dimensions[1]*dimensions[2] + # Calculate Wrapping Paper Required for Box + wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension + # Add to Wrapping Paper Catch-All Calculation + combined_wrapping_paper_total+= wrapping_paper_total + # Calculate Ribbon Needed for Box + ribbon_total = smallest_dimension+box_volume + # Add to Ribbon Catch-All Calculation + combined_ribbon_total += ribbon_total + #Append all Results to full list + full_list.append([dimensions, wrapping_paper_total, ribbon_total]) + + print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}') + print(f'Calculated Ribbon Total: {combined_ribbon_total}') + + +if __name__ == "__main__": + solution("list_of_presents.csv") \ No newline at end of file From 9d31eed4b2fbb531cce8cbaa36550ed7732aec3d Mon Sep 17 00:00:00 2001 From: NPinn Date: Mon, 16 Dec 2024 09:09:20 +0000 Subject: [PATCH 09/12] Updating solution code to properly calculate the length of ribbon required for each package --- solution_n.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solution_n.py b/solution_n.py index 83d593d..e14cb82 100644 --- a/solution_n.py +++ b/solution_n.py @@ -21,11 +21,11 @@ def solution(input_data): # Get Box Volume box_volume = dimensions[0]*dimensions[1]*dimensions[2] # Calculate Wrapping Paper Required for Box - wrapping_paper_total = 2*(smallest_dimension+second_dimension+third_dimension)+smallest_dimension + wrapping_paper_total = (2*(smallest_dimension+second_dimension+third_dimension))+smallest_dimension # Add to Wrapping Paper Catch-All Calculation combined_wrapping_paper_total+= wrapping_paper_total # Calculate Ribbon Needed for Box - ribbon_total = smallest_dimension+box_volume + ribbon_total = 2*(dimensions[0]+dimensions[1])+box_volume # Add to Ribbon Catch-All Calculation combined_ribbon_total += ribbon_total #Append all Results to full list @@ -33,6 +33,7 @@ def solution(input_data): print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}') print(f'Calculated Ribbon Total: {combined_ribbon_total}') + print(full_list) if __name__ == "__main__": From 700b0b331f1ef601f165d6fe80809990fcf807b2 Mon Sep 17 00:00:00 2001 From: NPinn Date: Mon, 16 Dec 2024 09:11:53 +0000 Subject: [PATCH 10/12] Removing line that prints list of all results, solution_n.py code now just outputs total required wrapping paper and ribbon --- solution_n.py | 1 - 1 file changed, 1 deletion(-) diff --git a/solution_n.py b/solution_n.py index e14cb82..8d20d20 100644 --- a/solution_n.py +++ b/solution_n.py @@ -33,7 +33,6 @@ def solution(input_data): print(f'Calculated Wrapping Paper Total: {combined_wrapping_paper_total}') print(f'Calculated Ribbon Total: {combined_ribbon_total}') - print(full_list) if __name__ == "__main__": From 15d012eeef3f189f373e6940e5eda956386e60fa Mon Sep 17 00:00:00 2001 From: NPinn Date: Mon, 16 Dec 2024 12:40:35 +0000 Subject: [PATCH 11/12] Fixing spelling mistake of list variable from list_of_presenets to list_of_presents --- solution_n.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solution_n.py b/solution_n.py index 8d20d20..85694aa 100644 --- a/solution_n.py +++ b/solution_n.py @@ -2,14 +2,14 @@ def solution(input_data): df = pd.read_csv(input_data) - list_of_presenets = df['Box Dimensions'].to_list() + list_of_presents = df['Box Dimensions'].to_list() del df full_list = [] combined_wrapping_paper_total = 0 combined_ribbon_total = 0 - for present in list_of_presenets: + for present in list_of_presents: # Split and get Int values for each boxes dimensions dimensions = list(map(int, present.split('x'))) # Sort Dimensions so that smallest measures are always in positions 0 and 1 From 15ce2f00d78e6d8813c8f65e960002c245a71f70 Mon Sep 17 00:00:00 2001 From: NPinn Date: Wed, 5 Feb 2025 17:08:38 +0000 Subject: [PATCH 12/12] Commit CSV list of presents file to soluion branch --- list_of_presents.csv | 101 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 list_of_presents.csv diff --git a/list_of_presents.csv b/list_of_presents.csv new file mode 100644 index 0000000..3102b20 --- /dev/null +++ b/list_of_presents.csv @@ -0,0 +1,101 @@ +Box Dimensions +2x1x5 +4x4x3 +2x9x2 +10x7x1 +1x2x4 +4x9x10 +1x9x4 +9x7x4 +8x10x5 +1x3x7 +6x5x3 +4x6x2 +2x7x2 +6x6x10 +5x1x8 +9x2x7 +2x9x5 +10x6x10 +4x2x1 +4x5x2 +4x2x7 +5x8x6 +3x6x6 +4x5x2 +10x3x9 +4x3x8 +7x5x9 +4x6x1 +4x1x6 +7x5x2 +4x10x6 +4x8x7 +8x3x5 +3x4x9 +9x5x10 +7x10x7 +6x4x3 +9x8x2 +1x2x3 +3x7x10 +2x7x7 +10x8x9 +5x9x1 +2x9x5 +6x2x5 +7x3x8 +1x5x9 +3x9x2 +5x9x10 +4x3x6 +3x9x9 +1x10x6 +8x1x2 +6x5x4 +1x4x10 +2x2x8 +2x9x3 +3x8x9 +3x5x9 +10x7x4 +9x4x5 +7x6x8 +9x8x2 +4x4x2 +6x1x10 +9x4x10 +4x1x2 +1x4x2 +1x6x2 +9x4x5 +8x4x9 +3x10x10 +8x4x8 +7x4x2 +2x7x6 +7x7x8 +1x2x1 +7x6x2 +4x4x4 +9x8x3 +7x3x5 +8x4x2 +8x9x2 +1x9x1 +2x4x3 +7x8x8 +4x7x1 +3x7x1 +7x5x8 +5x7x9 +8x3x4 +5x4x1 +10x9x1 +6x1x1 +10x8x9 +9x3x1 +9x2x3 +2x10x2 +4x7x2 +10x4x10