There are several types of data you can import to Python.

Plain Text Files

filename= 'huck_finn.txt'
file= open(filename, mode='r') #r for read
text= file.read()
file.close()
print(text) #optional: if you wanyt to read the content

Or to not worry about closing the file

with open('huck_fin.txt', 'r') as file:
print(file.read())

Print the first three rows of a file:

with open('moby_dick.txt') as file:
		print(file.readline())
		print(file.readline())
		print(file.readline())

Flat Files

CSV: Comma separated values

values can be separated with characters, mostly commas.

data= pd.read_csv("Salary_Data.csv")