>>>import os
>>>os.listdir(‘.’)
This will make a list containing the names of files and subdirectories.