We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8228d9 commit a965f04Copy full SHA for a965f04
4a.py
@@ -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