Ask coding questions

← Back to all posts
Getting error while running python code
GurleenKaur1105

Hie,

I am facing error while running my code. The error that is displayed is::
No such file: main.py
reply process died unexpectedly: exist status

Can anyone guide me on this. My code was running perfectly until now.

Answered by ANDREWVOSS [earned 5 cycles]
View Answer
Voters
GurleenKaur1105
Comments
hotnewtop
ANDREWVOSS

You need to put your code in the main.py file for it to be run.

GurleenKaur1105

@ANDREWVOSS Thank you, it worked.
Actually I am new to Python, didn't realized it will run only in main.py. Thanks a lot

ANDREWVOSS

@GurleenKaur1105 No problem.