Ask coding questions

← Back to all posts
how can i run my second file
iloveninjago

i want to run my second file but it always keeps on running main.py instead

Voters
Tanay2345
snair82
Comments
hotnewtop
[deleted]

Hope this works for ya! (PS make sure to import only the NAME of the file. Not file.py. Because python will see the .py as an extension to the import you are using which you 99% of the time wont have.

CodingRobot12

I found a program and someone did this:

CodingRobot12

actually try to import the programs and try to use it somehow.

CodingRobot12

I am not sure how to do that but I got for line 51 and between the strings, you should convert the variable to a string cause I got an error.

Coder100

Hello. You can configure the run button: Create a .replit file:

You can also import it:

iloveninjago

ok @Coder100 i will try