I have a list of objects called deckList in my constructor. The list will hold objects of the type Deck.
self.deckList = [Deck()]
If I get the last element in the list by,
deck = self.deckList[len(self.deckList) - 1]
Why is it that if I do, deck. I will still get methods for a List object?
Would I not get methods for the object type Deck?
Any tips?
list[-1]