Best one to use for this


#1



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

print my_file.readline()
print my_file.readline()
print my_file.readline()

my_file.close()


#2

@vijaygurajala

Your code opens a text file called text.txt then reads the first three lines then closes it. Is there a question here??