Ask coding questions

← Back to all posts
Deleted main.py
MAHBOOBALI2 (0)

Accidently deleted the main.py from my repl.it, anyway to get this back?

Comments
hotnewtop
Coder100 (18089)

create the file again, and click this big cycle button

[deleted]

click history and restore the version

InvisibleOne (2934)

on the left side of the repl you should have a button to create a new file, name it 'main.py'

MAHBOOBALI2 (0)

@InvisibleOne my main.py had code, i want to get this code back

InvisibleOne (2934)

Oh, then recreate the main.py like I said, and then look into the history and you should be able to restore you code.

@MAHBOOBALI2

MAHBOOBALI2 (0)

@InvisibleOne I love you bro, i thought i had to do 200 lines of code again THANK YOU SO MUCH

helloyanis (11)

@MAHBOOBALI2 Make sure to put your post as anwsered if you found the solution

MAHBOOBALI2 (0)

@helloyanis sorry i dont know how to do this, could u show me a screenshot maybe?

helloyanis (11)

@MAHBOOBALI2 Click the checkmark under the post that solved your problem!