I want to access a class attribute in a method, which is associated with the class but since this should be automatic, I use a for-loop. The problem is how to append the attribute name that I get as a string to self so that I could access the attribute: self.str.
Code Snippet : Source Code