I am somewhat new to Python - after searching I cannot find an answer to this 'simple' question.
I am defining several custom data structures, and need each one to be named after the value contained in a variable. I am sure the answer is very simple - code shows an example of what I am trying to achieve.
class aDataStructure:
def __init__(self, value):
self.value=value
String1 = "name"
# How to define this data structure with the String contained in 'String1'?
??? = aDataStructure ('a value')
print name.value