Looks like you got tab \t
separated values. This is my fav:
with open('numbers.txt') as f:
# split the file by rows and rows by separator
l = [i.split('\t') for i in f.read().split('\n')]
print(l) # [['5', '6'], ['3', '8'], ['9', '10']]
With open... makes sure that the file is closed after.
Other alternatives would include importing libraries. Numpy and pandas are the two leading packages to deal with arrays/data/tables/matrixes. Both of them will evaluate your input (and in this case it would be stored as integers). Numpy was suggested by Joran Beasley.
import numpy as np
l = np.genfromtxt('numbers.txt').tolist()
import pandas as pd
l = pd.read_csv('numbers.txt', sep='\t', header=None).values.tolist()
If you need it to be integers or float, change code below to one of these:
l = [list(map(int,i.split('\t'))) for i in f.read().split('\n')]
# [[5, 6], [3, 8], [9, 10]]
l = [list(map(float,i.split('\t'))) for i in f.read().split('\n')]
# [[5.0, 6.0], [3.0, 8.0], [9.0, 10.0]]