New to programming here and was wondering if anyone could help me out:
I'm trying to print or return the number of lines found in the below code using one line and I can't figure it out.
query = raw_input("Enter string to search for: ")
for line in open("list2.csv"):
if query in line:
print line,