Skip to main content

Python implementation of Advent of Code 2023 Day 1

Project description

Trebuchet

Python implementation of day 1 of Advent of Code (2023)

Requirements

Running Instructions

This program can be run with the following command: ./main.py [text file] in which text file contains a collection of lines to parse through for integers. The first and last integer found will then be concatenated. All the final integers from each line will then be added together and the result written to standard out.

If this program is run without arguments, the following error message will be outputted: Usage: main.py [OPTIONS] INPUT_FILE

Sample Execution

When this program is run with ./main.py resources/example.txt, the following output is generated: The result is 281

Prompt Answer

The answer for part one is 55538.
The answer for part two is 54875.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aoc_trebuchet-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aoc_trebuchet-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file aoc_trebuchet-1.0.0.tar.gz.

File metadata

  • Download URL: aoc_trebuchet-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for aoc_trebuchet-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c502e9c27b60a072975dbb4f9158a45490d99dfafcaf8269cacc952fb13ce1c
MD5 8efd5d1332219593a3c93d249a4b1fb6
BLAKE2b-256 7e4255835c1ee316a86c161e5ed9f69c2bfe8459211f2e155152c1b0bb9f94f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aoc_trebuchet-1.0.0.tar.gz:

Publisher: publish.yml on TonyGrif/trebuchet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aoc_trebuchet-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: aoc_trebuchet-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for aoc_trebuchet-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4039cacc66684ca009999b68cc8263b6246394134ee8ef06408ce23050f3bce
MD5 2c967d62395d17fe07baca29ae292daf
BLAKE2b-256 28b9e96a7777e213ce6daeac5096ff93633309a61a398367b347848f334f2ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for aoc_trebuchet-1.0.0-py3-none-any.whl:

Publisher: publish.yml on TonyGrif/trebuchet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page