Py 3 ex.1: "no such file or directory," error


#1

I might just be really dumb, but I don’t understand why terminal is sending me the “no such file or directory,” error. I thought I added the file, “ex1.py,” to the directory, which I already created. Here is a SS so you can see what I am talking about:


#2

Hello @maxvelasco.

This error occurs because you started the terminal in another directory.
Type:

pwd

in the terminal to see where you are (pwd = print working directory).
You can also type:

ls

to see which files/folders you have in there.

If you have to move into another folder type:

cd my_folder

Have a look at the appendix of your book.
Zed has written a chapter about how to work with the terminal.