1#import libs
2import os
3
4#set path of file or website on which listdir is to be applied
5path='/users/desktop/dummy'
6
7#Print all data in path
8
9for file in os.listdir(path):
10 print(file)
1from os import listdir
2
3## Prints the current directory as a list (including file types)
4print(os.listdir())
5