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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c502e9c27b60a072975dbb4f9158a45490d99dfafcaf8269cacc952fb13ce1c
|
|
| MD5 |
8efd5d1332219593a3c93d249a4b1fb6
|
|
| BLAKE2b-256 |
7e4255835c1ee316a86c161e5ed9f69c2bfe8459211f2e155152c1b0bb9f94f0
|
Provenance
The following attestation bundles were made for aoc_trebuchet-1.0.0.tar.gz:
Publisher:
publish.yml on TonyGrif/trebuchet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aoc_trebuchet-1.0.0.tar.gz -
Subject digest:
9c502e9c27b60a072975dbb4f9158a45490d99dfafcaf8269cacc952fb13ce1c - Sigstore transparency entry: 146900776
- Sigstore integration time:
-
Permalink:
TonyGrif/trebuchet@51633aa3c5cf6a2640205d541bf24601d6cb79bb -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/TonyGrif
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@51633aa3c5cf6a2640205d541bf24601d6cb79bb -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4039cacc66684ca009999b68cc8263b6246394134ee8ef06408ce23050f3bce
|
|
| MD5 |
2c967d62395d17fe07baca29ae292daf
|
|
| BLAKE2b-256 |
28b9e96a7777e213ce6daeac5096ff93633309a61a398367b347848f334f2ce8
|
Provenance
The following attestation bundles were made for aoc_trebuchet-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on TonyGrif/trebuchet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aoc_trebuchet-1.0.0-py3-none-any.whl -
Subject digest:
b4039cacc66684ca009999b68cc8263b6246394134ee8ef06408ce23050f3bce - Sigstore transparency entry: 146900778
- Sigstore integration time:
-
Permalink:
TonyGrif/trebuchet@51633aa3c5cf6a2640205d541bf24601d6cb79bb -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/TonyGrif
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@51633aa3c5cf6a2640205d541bf24601d6cb79bb -
Trigger Event:
push
-
Statement type: