[Python] Help with code please! Also 'enumerate'Watch
file = open("file") Opens the file
lines = file.readlines() Assigns the read file to the variable 'lines'
for line in lines: goes through each line in the file read
if ("your string")in line: if your string is in the line it will print it
file.close() closes the file
edit: By the way, enumerate() just creates an iterator, which will go through a list one-by-one