0
how to find a string from a line in a text file & show the string & the line number.
String = raw_input("Enter String:") search = open("file.txt") for line in search: if string in line: print (line)
1 Resposta
0
can some1 say why it doesnot work.?
String = raw_input("Enter String:") search = open("file.txt") for line in search: if string in line: print (line)