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.1.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.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aoc_trebuchet-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 a254c471b8eddcafc87a393aa3a002cad9d6892e993a5fa9fba05b52d000a0f7
MD5 086dd8cb9a7d5d964de2a468f9cc3eab
BLAKE2b-256 5200c73dc8a18b1fc0a7e94604ea2c9208b82c4f9eb5c3bb9c368cee4c0f2511

See more details on using hashes here.

Provenance

The following attestation bundles were made for aoc_trebuchet-1.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: aoc_trebuchet-1.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff8cd12a73c48a67405eccf9dfb9020f219cd9bba340d4698cbf567763f456be
MD5 7faa0c6472b448602db3de7ce0f15bff
BLAKE2b-256 b201580ff434959c0d27ad05010b23421610e3dd81d6a32906da9daa66ae89a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for aoc_trebuchet-1.1.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