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

--

--

Trying to introduce myself in a new forum with hopeful expectations!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Obioku Obotette

Trying to introduce myself in a new forum with hopeful expectations!