Can you please help me with the below code ? I can't understand why its not printing content of the txt file in a folder ?

```
import os
directory = raw_input( "Provide the folder location")
for files in os.listdir(directory): 
   if files.endswith(".txt"):
       f=open(files, 'r')
       for line in f.readlines():
          print line

```