Skip to main content

LinkedList.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 LinkedList is empty else the element at that index.

Example

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