argparse working

This commit is contained in:
Joshua Flores 2025-03-21 15:45:46 -04:00
parent 89a3c08a50
commit 3492294335
No known key found for this signature in database
GPG key ID: 69CA63D415549E19
5 changed files with 1057 additions and 0 deletions

0
adventofcode/__init__.py Normal file
View file

10
adventofcode/lib.py Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env python3
# This function will read a file path and return a data object.
# It does no other data manimpulation.
def read_file(file_path):
# Open a file in read mode
with open(file_path, "r") as file:
data = file.read()
print(data)
return data