Ex25 Python Interpreter question

Hello all,
I am working through Ex25 of LPTHW. I’ve entered and saved the code, and am trying to carry out the next steps by using Python from the command line and also running Python from Powershell.

When I try to import ex25, I get an error saying no such module has been found.
Am I right in thinking that I have to specify what my working directory is, or should Python be able to find my ex25 without me navigating to it?

Sorry for the dumb question, but I’ve looked in the Python Interpreter documentation on Python.org and have not found what I am looking for.

Advice appreciated :slight_smile:

Thanks in advance,


Hello @Hammer_53

You have to be in the same folder as your Python file when starting the interpreter.
Check where you are with:


And whats in the folder with:


I think these commands are the same in powershell as in a linux terminal.

And you don’t have to type in


When importing to the interpreter.

Hope this helps.

Thanks, Ulf, that does help.
Much appreciated,

1 Like