I am new to python and I have encounter this List is not callable
error.
What should I do to prevent this from happening? Thanks!
def PrintTxt(src, beg, end):
with open(src, 'r') as f1:
srctxt = f1.readlines()
for line in srctxt(beg, end):
print(line)
Filepath = 'C:\test.txt'
PrintTxt(Filepath,1,5)