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)

19th Sep 2017, 5:48 AM
luckk lucky
luckk lucky - avatar
1 Réponse
0
can some1 say why it doesnot work.?
19th Sep 2017, 5:49 AM
luckk lucky
luckk lucky - avatar