Write a method in python to read lines from a text file MYNOTES.TXT, and display those lines, which are starting with an alphabet ‘K’.
def display():
file=open('MYNOTES.TXT','r')
line=file.readline()
while line:
if line[0]=='K' :
print line
line=file.readline()
file.close()



