I tried to
open the file, but it says the file doesn't exist:
The console reads:
Traceback (most recent call last):
File "python", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'text.txt'
and the error message keeps reading: "Oops, try again. Sorry, but I'm gonna need you to refresh the page! Don't worry your code is saved."
The file to be read
my_file = open("text.txt", "r") print my_file.readline() print my_file.readline() print my_file.readline() my_file.close()