title: How to find the position/index of a particular file in a directory?
body: <p>I am new to python.I have a list of file names contained in a folder and I want to build a function which can search and return the position of a particular file in the list of files.</p>