I tried to do what in the instruction as in given below
Declare a new variable my_file and store the result of calling open() on the "text.txt" file in "r"ead-only mode.
On three separate lines, print out the result of calling my_file.readline(). See how it gets the next line each time?
Don't forget to close() your file when you're done with it!)
and my code for this above question is given below but i am getting and error
Oops, try again. Sorry, but I'm gonna need you to refresh the page! Don't worry your code is saved.
can anyone help me with this problem
my_file = open("text.txt","r") print my_file.read() my_file.close()