This is my code
f1 = open("file1.txt").read( ).splitlines( )
f2 = open("file2.txt").read( ).splitlines( )
print list(itertools.product(f1,f2))
I want to run this for all files in the directory.How to do it using python. I am unable to implement suggestions given here using glob.