Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nathan's Solution Branch Pull Request #5

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

NPinn
Copy link

@NPinn NPinn commented Dec 13, 2024

Creation of a solution_n branch and solution_n.py file to calculate the required amount of wrapping paper and ribbons needed to bring the maximum amount of joy to all the children of the world this Christmas!

@antsh3k
Copy link
Owner

antsh3k commented Dec 16, 2024

Great you've fixed your ribbon calculation.
Congratulations the children will get thier presents after all!

Copy link
Owner

@antsh3k antsh3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit these Sp mistake and I'll merge the new branch in

solution_n.py Outdated

def solution(input_data):
df = pd.read_csv(input_data)
list_of_presenets = df['Box Dimensions'].to_list()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list_of_presents

solution_n.py Outdated
combined_wrapping_paper_total = 0
combined_ribbon_total = 0

for present in list_of_presenets:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list_of_presents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants