Python Reading Between the Lines Unable to Complete Exercise


#1



https://www.codecademy.com/courses/python-intermediate-en-OGNHh/1/1?curriculum_id=4f89dab3d788890003000096


Traceback (most recent call last):
File "python", line 1, in
IOError: [Errno 2] No such file or directory: 'text.txt'

AND

Oops, try again. Sorry, but I'm gonna need you to refresh the page! Don't worry your code is saved.


I cannot complete the exercise. I am fairly certain my code is sound. I tried refreshing the page and it still won't work.


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


#2

Apparently there is a bug in this exercise. Please see: https://discuss.codecademy.com/t/5-9-bug/48500/6?u=itschrisburton


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.