How to run a program of ONLY one particular file (instead of running all files together or instead of running only the first file)?

Question:

Replit Profile: https://replit.com/@saranshkamble02

Hi @saranshkamble02 , welcome to the forums!
If you click the Run button, wouldn’t it only run 1 file?

printing only the main.py
not other files which I want to print.

You can run the file of your choice from the command terminal (tab shell)

1 Like

Adding onto @Botato300 's answer, enter python filename.py, where filename is the name of the file like main or test.
But pressing the Run button only runs 1 file, why wouldn’t it?

1 Like

I did this thing but not working though. error shown.

What is the error? Could you share it here?