Relink programs to text files

This commit is contained in:
2020-06-22 11:24:36 +02:00
parent 2da8957aac
commit 7201fa6e8b
6 changed files with 6 additions and 6 deletions

View File

@@ -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()

View File

@@ -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

View File

@@ -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()

View File

@@ -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]

View File

@@ -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]

View File

@@ -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]