Skip to content
Snippets Groups Projects
Commit 7b1845e9 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Source code cleanup.

parent ba65b060
No related branches found
No related tags found
No related merge requests found
from numpy import array, zeros
#m = array([[131, 673, 234, 103, 18 ],
# [201, 96 , 342, 965, 150],
# [630, 803, 746, 422, 111],
# [537, 699, 497, 121, 956],
# [805, 732, 524, 37 , 331]])
f = open('matrix.txt', 'r')
m = array([map(int, l.split(',')) for l in f.readlines()])
f.close()
m = array([map(int, l.split(',')) for l in open('matrix.txt', 'r').readlines()])
def add(x, y):
global m
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment