[No audio]
So far, our basics.py and our fruits.txt file
were in the same
directory, in the same folder. That
allowed us to only write the name of the
file in the basics.py file. However, if
the fruits.txt file was, for example
inside this other directory,
[No audio]
so I just moved fruits.txt inside files. files
is a folder that is in the same
directory with basics.py. So basics.py
in the same folder with scripts with
files, and fruits is inside files. In that
case, if you execute the basics.py file,
you're going to get a FileNotFoundError.
No such file or directory fruits.txt,
and that is true, there's no
fruits.txt in the folder
where basics.py is, so what you
need to do is you need to specify the
complete path to the file relative to
the basics.py, that is files/fruits.txt.
[No audio]
Execute that and things will work.
[No audio]