Matrix Arithmetic with Python

#list for reading numbers
nums = []
index = 0
#open file
#read line by line
#then split to append to list
with open(“COSC450_P2_Data.txt”,”r”) as data:
for x in data:
array = x.split()
for i in array:
nums.append(int(i))

data.close()