How can I make a text file (STRnumbers.txt) that I have which has a long list of lists like this (one on each line):
['1', '2', '3']
['3', '3', '1']
['10', '1', '3']
Into one master list:
Master = [(1, 2, 3), (3, 3, 1), (10, 1, 3)]
And make the numbers into regular integers?
FYI: to make the initial text file with the string integers, what I did was:
Numbers = splittext[start:end]
Numbers = str(Numbers)
OutputFile.write(Numbers + "\n")