+ 1

[Python] How should I do?

I've made my first 100+ lines of python code. Then my laptop suddenly shutted down right when I was writing and running my program. I'm pretty sure I'd already saved it bcos I'd run and tested it many times. When I tried to open it again, it was all blank but spaces still remained (the column status still counted). When I tried to open it with Notepad++, there were a bunch of 'null's. Just why? Please help!! It's a pain to rewrite it.

18th May 2019, 1:39 PM
Alfarrel
Alfarrel - avatar
2 odpowiedzi
+ 3
A python file is a plain text file. I've never heard that a shutdown can cause such damage to a text file. Are you sure you're trying to open the actual .py file and not some bytecode, autosave or other project file?
18th May 2019, 3:33 PM
Anna
Anna - avatar
+ 1
Thank you... My chest kinda hurt though :(
18th May 2019, 2:35 PM
Alfarrel
Alfarrel - avatar