Relink programs to text files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#Same as task 18
|
||||
|
||||
with open('67.txt') as fp:
|
||||
with open('./../67.txt') as fp:
|
||||
data = [list(map(int, line.strip().split(' '))) for line in fp]
|
||||
|
||||
data.reverse()
|
||||
|
@@ -1,4 +1,4 @@
|
||||
with open('11.txt') as fp:
|
||||
with open('./../11.txt') as fp:
|
||||
data = [list(map(int, line.strip().split(' '))) for line in fp]
|
||||
|
||||
#I is y axis, J is x axis
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#Same as task 67
|
||||
|
||||
with open('18.txt') as fp:
|
||||
with open('./../18.txt') as fp:
|
||||
data = [list(map(int, line.strip().split(' '))) for line in fp]
|
||||
|
||||
data.reverse()
|
||||
|
@@ -8,7 +8,7 @@ def wordSum(n):
|
||||
|
||||
data =[]
|
||||
|
||||
with open('22.txt') as file:
|
||||
with open('./../22.txt') as file:
|
||||
reader = csv.reader(file, delimiter=",", quotechar='"')
|
||||
data = list(reader)[0]
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import csv
|
||||
import math
|
||||
|
||||
with open('42.txt') as file:
|
||||
with open('./../42.txt') as file:
|
||||
reader = csv.reader(file, delimiter=",", quotechar='"')
|
||||
words = list(reader)[0]
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import csv
|
||||
|
||||
with open('59.txt') as file:
|
||||
with open('./../59.txt') as file:
|
||||
reader = csv.reader(file, delimiter=",")
|
||||
numbers = list(reader)[0]
|
||||
numbers = [int(i) for i in numbers]
|
||||
|
Reference in New Issue
Block a user