5 tells me to refresh page


#1

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()
my_file.close()

i dont know what happenening


#2

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


#3

Thanks alot :smile :smile:


#4

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


#5

tried the same so much but it wont accept


#6

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


#7

Thank you. Worked for me.


#8

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.
cheers!


#9

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


#10

where is the text.txt tab?


#12

thank you it perfectly worked!


#13

It's on the console where you code right on top next to the tab called "script.py"