I want to read a text file which contains list of file names and append that to a list.
I have written the code, but the output is repeated twice.
For example, there is text file named filelist.txt which contains the list of files (ex:- mango.txt).
When I run the code its printing mango.txt twice.
def im_ru(filelist1):
    with open(filelist1,"r") as fp:
        lines = fp.read().splitlines()
        for line in lines:
            print(lines) 
 
     
     
    