{"id":25175086,"url":"https://github.com/sarahm44/sals-shipping-project","last_synced_at":"2026-07-06T21:31:06.957Z","repository":{"id":274260868,"uuid":"922389830","full_name":"sarahm44/sals-shipping-project","owner":"sarahm44","description":"Uses Python to find the cheapest shipping method for a customer based on weight and price.","archived":false,"fork":false,"pushed_at":"2025-01-27T04:12:42.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T06:51:04.734Z","etag":null,"topics":["codecademy","codecademy-courses","codecademy-cs","codecademy-pro","python-basics","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sarahm44.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-26T04:06:41.000Z","updated_at":"2025-01-29T11:19:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"00e1a132-13c4-43ed-801b-faebe394677a","html_url":"https://github.com/sarahm44/sals-shipping-project","commit_stats":null,"previous_names":["sarahm44/sals-shopping-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sarahm44/sals-shipping-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarahm44%2Fsals-shipping-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarahm44%2Fsals-shipping-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarahm44%2Fsals-shipping-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarahm44%2Fsals-shipping-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarahm44","download_url":"https://codeload.github.com/sarahm44/sals-shipping-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarahm44%2Fsals-shipping-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35206987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codecademy","codecademy-courses","codecademy-cs","codecademy-pro","python-basics","python3"],"created_at":"2025-02-09T12:28:50.585Z","updated_at":"2026-07-06T21:31:06.914Z","avatar_url":"https://github.com/sarahm44.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codecademy Project: Sal's Shipping\n\n![\"\"](https://github.com/sarahm44/sals-shipping-project/blob/main/sals-shipping.jpg)\n\n## Contents\n- [Overview](#overview)\n- [Shipping Options](#shipping-options)\n- [Pricing Structure](#pricing-structure)\n- [Python Program](#python-program)\n- [Finding the Best Option for a Customer](#finding-the-best-option-for-a-customer)\n\n## Overview\nI was required to write a Python program for Sal's Shipping.\n\nThe program: \n1. Asks the user for the weight of their package;\n2. Tells them which method of shipping is cheapest; and\n3. Tells them how much it will cost to ship their package using Sal’s Shippers.\n\n## Shipping Options\nSal’s Shippers has several different options for a customer to ship their package:\n* Ground Shipping, which is a small flat charge plus a rate based on the weight of your package.\n* Ground Shipping Premium, which is a much higher flat charge, but you aren’t charged for weight.\n* Drone Shipping (new), which has no flat charge, but the rate based on weight is triple the rate of ground shipping.\n\n## Pricing Structure\n### Ground Shipping\n\n| Weight of Package | Price per Pound | Flat Charge |\n| --- | --- | --- |\n| 2 lb or less | $1.50 | $20.00 |\n| Over 2 lb but less than or equal to 6 lb\t| $3.00\t| $20.00 |\n| Over 6 lb but less than or equal to 10 lb\t| $4.00\t| $20.00 |\n| Over 10 lb\t| $4.75\t| $20.00 |\n\n### Ground Shipping Premium\nFlat charge: $125.00\n\n### Drone Shipping\n| Weight of Package\t| Price per Pound\t| Flat Charge |\n| --- | --- | --- |\n| 2 lb or less\t| $4.50\t| $0.00 |\n| Over 2 lb but less than or equal to 6 lb\t| $9.00\t| $0.00 |\n| Over 6 lb but less than or equal to 10 lb\t| $12.00\t| $0.00 |\n| Over 10 lb\t| $14.25\t| $0.00 |\n\n## Python Program\nThe file [here](https://github.com/sarahm44/sals-shipping-project/blob/main/sals_shipping.py) contains the Python Program to help Sal's Shipping customers select the best option for their shipping needs.\n\nI used if/elif/else statements to define the pricing structure set out above, per this image:\n\n![\"\"](https://github.com/sarahm44/sals-shipping-project/blob/main/python_code.png)\n\n## Finding the Best Option for a Customer\n### For a 4.8 pound package\nI used the code to answer the question:\n\n* *What is the cheapest method of shipping a 4.8 pound package and how much would it cost?*\n\nTo do so I defined the weight variable as per the below:\n\n![\"\"](https://github.com/sarahm44/sals-shipping-project/blob/main/weight_variable_4.8.png)\n\nThe output from running the code is:\n\n![\"\"](https://github.com/sarahm44/sals-shipping-project/blob/main/output_4.8.png)\n\nAs such, the cheapest option for the customer is **Ground Shipping** for a price of **$34.40**.\n\n### For a 41.5 pound package\nI used the code to answer the question:\n\n* *What is the cheapest method of shipping a 41.5 pound package and how much would it cost?*\n\nTo do so I defined the weight variable as per the below:\n\n![\"\"](https://github.com/sarahm44/sals-shipping-project/blob/main/weight_variable.png)\n\nThe output from running the code is:\n\n![\"\"](https://github.com/sarahm44/sals-shipping-project/blob/main/output.png)\n\nAs such, the cheapest option for the customer is **Ground Shipping Premium** for a price of **$125**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarahm44%2Fsals-shipping-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarahm44%2Fsals-shipping-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarahm44%2Fsals-shipping-project/lists"}