Question: Like there is a folder say XYZ , whcih contain files with diffrent diffrent format
let say .txt file, excel file, .py file etc.
i want to display in the output all file name using Python programming

Answer: 
```
import glob
glob.glob('XYZ/*')

```

[See the documentation for more](http://docs.python.org/library/glob.html)
```
import os

XYZ = '.'

for item in enumerate(sorted(os.listdir(XYZ))):
    print item

```