Skip to content

Instantly share code, notes, and snippets.

@siddharthganjoo
Created August 30, 2021 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siddharthganjoo/f1da516e568b48a6c5dd0ce1c66663a5 to your computer and use it in GitHub Desktop.
Save siddharthganjoo/f1da516e568b48a6c5dd0ce1c66663a5 to your computer and use it in GitHub Desktop.
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