0
I’m trying to instantiate an object multiple times, from a single class, defined below:
class lancamento():
def __init__ (self,date,description,value):
self.date=date
self.description=description
self.value=value
I would like to use a loop for, which reads a csv file and assigns a value to each of the class properties:
a=lancamento(input_a,input_b,input_c)
I printei to test the result:
print(a.description)
and clearly printed the value of the last assignment of the loop for.
I would like to find a way that I can differentiate each of the instantiated objects...