How to make a category inside a category with python?

I want to build an app that manages your photos into categories and you only put at first their path and then with keywords you access those photos. I got stuck when I have to make a sub category. I tried

path_and_image = {user_answer : new_list, new_list : path_LiL}

Where user_answer is the main category, new_list is the sub category/categories and path_LiL is their paths. It gave me traceback with TypeError: unhashable type: 'list'. I do not know how to solve this, I hope someone can get my problem solved.



Read more here: https://stackoverflow.com/questions/67382812/how-to-make-a-category-inside-a-category-with-python

Content Attribution

This content was originally published by Crypto2810 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: