Created
August 30, 2021 09:47
-
-
Save siddharthganjoo/f1da516e568b48a6c5dd0ce1c66663a5 to your computer and use it in GitHub Desktop.
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
shapes = ['triangles', 'circles', 'squares'] | |
path= 'shapes/' | |
files= [] | |
result= [] | |
for shape in shapes: | |
new_path= path+shape | |
for file in os.listdir(new_path): | |
files.append(os.path.join(new_path,file)) | |
result.append(shape) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment