Bug in Python course - IO LESSON 5


#1



the open command cant fine the text.txt file


it need to open it for reading

please notify us when it's fix... i want my 100% python badge! xD

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

we get the following error:
Traceback (most recent call last):
  File "python", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'text.txt'


#2

Check this Q&A post


#3

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