I'm new at learning python and i don't know which default directory python use to open file.
I have read some of the similar question answer on stackoverflow but didn't helped me. I'm running python 3.6.2.
I have following code where 'test.txt' file is stored where all .py files stored but i'm getting
FileNotFoundError: [Errono 2] No such file or directory: 'test.txt'
handle = open('test.txt')
for line in handle:
print(line)