fout = open ("aboutme.txt", "w") fout.write (source) fout.close()
for s in open ("aboutme.txt"): if re.search( search, s ): & print( search, "is at", re.search( search, source ).start(0), "position of the line:", s ) & break
Comments
Leave a comment