Hello I was wondering how I would print the variable names inside of my list. Thanks
traits = [Character, Eye, Hair, Mouth, Shirt]
attributes.append({'trait_type': f"{traits=}", 'value': (os.path.basename(traits[a]))[:-4]})
What I want the output to be is:
'trait_type': 'Character'
I was searching and alot of threads said to make a dictionary, but wasn't sure if there was a way to brute force it. Thanks.