Skip to content

Commit a965f04

Browse files
authored
Add files via upload
1 parent c8228d9 commit a965f04

File tree

3 files changed

+644
-0
lines changed

3 files changed

+644
-0
lines changed

4a.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#Advent of code 2021
2+
# 12/06/21 day 4a
3+
# Joe McFarland
4+
# import sys
5+
# import re
6+
import copy
7+
8+
filename = "data4_short.txt"
9+
10+
file = open(filename)
11+
filestr = file.read()
12+
a_list = filestr.split("\n")
13+
maxrows = len(a_list)
14+
print(a_list)
15+
#maxcols = len(a_list[0])
16+
17+
draw_strings = a_list[0].split(",")
18+
draws = [int(elem) for elem in draw_strings]
19+
print(f"\ndraws={draws}")
20+
21+
22+
23+
24+
#print(f"mul = {ogen*co2}")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy