Created
September 10, 2015 16:05
-
-
Save bryjbrown/3a18b54aa5c7959d1b9d to your computer and use it in GitHub Desktop.
Python file listing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
directory = os.getcwd() | |
files = os.listdir() | |
for file in files: | |
print("{} is a file in {}".format(file, directory)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment