Why I can't run my second file
AshkiKudzma (20)

I want to run my second python file but it always run whatever i have in main.py but not in second file i made.

You are viewing a single comment. View All
AliBaba1 (14)

To do this
go to your main.py file
and write the following code in it

from filename import *

Remember replace filename in code with your desired filename to be run
Note: do not use keywords as your filenames.

aayushich6 (0)

@AliBaba1 It is working but then at the bottom it is showing an error.

Also, how would i import another file inside a folder??