I want to redirect the print to a .txt file using python. I have a \'for\' loop, which will \'print\' the output for each of my .bam file while I want to redirect ALL these
Something to extend print function for loops
x = 0 while x <=5: x = x + 1 with open('outputEis.txt', 'a') as f: print(x, file=f) f.close()