I'm trying to instantiate multiple objects related to the simple class defined below:
class lancamento():
def __init__ (self,date,description,value):
self.date=date
self.description=description
self.value=value
I'd like to use a for loop, which reads a csv file and sets a value to each of the class properties:
a=lancamento(input_a,input_b,input_c)
I printed the following in order to check the result:
print(a.description)
and, of course, the printed result is the one set in the last loop for iteration...
I'd like to instantiate different objects inside this for loop...