5 tells me to refresh page

tells me to refresh page but when i do so it does nothing
is there something wring with my code?

my_file = open("text.txt", "r")
print my_file.readline()
print my_file.readline()
print my_file.readline()

i dont know what happenening

1 Like

I got the answer from another thread.

On the text.txt tab, edit the file which forces it to be saved again. (I deleted then readded a full stop)

Then submit your code again, the file text.txt will be recognised


Thanks alot :smile :slight_smile:

Thank you so much, this was driving me nuts :smiley:

tried the same so much but it wont accept

So did I, and it won´t accept. I just went on to #6 via the menu.

Thank you. Worked for me.

on text.txt tab remove any word or alphabet then click save & submit button
after that back to script.py and run your code. will be work as charm.


Thank you! Glad it wasn’t just me. I was going nuts trying to fix that. :smile:

where is the text.txt tab?

thank you it perfectly worked!

It’s on the console where you code right on top next to the tab called “script.py”