Skip to main content

DoublyLinkedList.get

get the value of an item at a specified index

Usage

get(index: int)

Parameters:
      index : int
            The index of the item

Returns:
      element
            Returns None if DoublyLinkedList is empty else the element at that index.

Example

from jellybeans.structures import DoublyLinkedListLL1 = DoublyLinkedList([10, 3, 7, 29])print(LL1.get(3)) # 29