For example, I have a class Wall (doesnt have an init)
if a = Wall()
and str(a)
outputs: '#'
if i have a string containing '####'
how can i turn that string into a list, that has the name of the class object like this:
[Wall(), Wall(), Wall(), Wall()]
Wall
objects?list
of strings corresponding to classes? With the limited examples you give, there are just too many possible options, many of which won't work for your use case. We need more details, more evidence of effort, and a minimal reproducible example that's more than just one fairly unclear example.