Ask coding questions

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

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 (187) [earned 5 cycles]
View Answer
Comments
hotnewtop
ANDREWVOSS (187)

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

GurleenKaur1105 (0)

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