So i was writing in jupyter notebook the code:
txtpath='C:\\Users\\Desktop\\somefile.txt'
q=open(txtpath)
print(q.read())
and it turns out okay. but when I try the same code (literally copy and paste) on another tab of jupyter notebook, it returns:
'_io.TextIOWrapper' object is not callable
I was wondering why this is happening? Thanks!