with open("data3.txt") as f:
data = f.read()
data = data.split('\n')
x = [row.split(' ')[0] for row in data]
y = [row.split(' ')[1] for row in data]
I need to read the data file (which is a text file, with columns separated by tab), but I am not able to read it using the above code, where I have copied the 'tab' spacing from the .txt file and pasted it in the code directly. What is the reason this is not happening?