I have no idea what is going on. I wrote the my_file properly. Right? Or, is the tab that says "text.txt" not the name as seen there?
I expected it to accept.
my_file = open("text.txt", 'r') print my_file.readline(1) print my_file.readline(2) print my_file.readline(3) my_file.close() Traceback (most recent call last): File "python", line 1, in <module> IOError: [Errno 2] No such file or directory: 'text.txt'