0
I’m new here and I’m learning Python now. I have a question here of how to insert an element at the end of the list. I searched on the Internet as if to insert some element at the end of the list, and saw that uses the append() method. But since I’m a beginner yet, I don’t know if it’s right as I’m doing...
class LL:
def__init__(self).inicio = None
def taVazia(self): return self.inicio is None
def insereInicio(self, item):
temp = Noh(item)
temp.setProx(self.inicio)
self.inicio = temp
def insereFim(self, item):
temp = Noh(item)
temp.setAnterior(self.fim)
self.fim = temp
append(novoItem)
Okay. I’ll tell you what!
– leonardo santana