I know the difference of class variable and the instance variable and where they should reside in my code however here is what I'm confused. If for example I have a list of tuples in an instance variable then I use that in a for loop block, would the variables assigned to the values of tuple should have the "self." prefix?
class Asdf():
cls_var = [(1,2), (3,4)]
def __init__(self):
self.ins_var = [(1,2), (3,4)]
def method(self):
for (x, y) in self.ins_var: # should it be this way
Pass
for (self.x, self.y) in self.ins_var: # or this way to assign variable?
Pass
Also the same question goes for the class variable but I think it could be without the self. prefix