-1
have a question can I declare a list inside a Python object? If yes, I would do that, and how I would manipulate (add, print..) someone has some example or reference where they can study this?
guy..
class Veiculo(object):
def __init__(self, id, valor, lista_id_vinculado[]):
self.id=id
self.valor=valor
self.lista_id_vinculado[]=lista_id_vinculado[]
Hello and Gualberto, could you test my answer? In case it worked out, please mark as right. If you need help I’m available. Hug!
– Éder Garcia