For example:
content of myfile has
fsdfasf
frjfmcd
39djaxs
I want to convert this in to a matrix where it consists of my_matrix=[['f','s','d','f','a','s','f'],['f','r','j'......]]
I've tried reading the file using
for line in file:
line = line.strip('\n)
print(line)
But it's not giving me the desired output.
What am I missing to do?
list(line)should do) and append each list to a final result list.