I am making a simple application where it reads and loads words from a text file into a ListCtrl(lc_report) in wxPython. There are only two column. i am loading it like this :
f=open('Test.txt','r') all_words = map(lambda l: l.split(" "), f.readlines())
And in Test.txt file, there are some words like this :
Devid R 21 Floor
John B 33 Floor
Now as you can see what happens when it loads the words. I can only see Devid in first column and R in second column since there are only two columns. How do make it so that Devid R will come in first column and 21 Floor will come in second column with space. I am having space problem. Any help will be appreciated.
Thanks in advance