Files
python/exercises/practice/simple-linked-list/simple_linked_list.py
BethanyG 26635914c1 [Simple Linked List]: Updated Stub File (#3834)
* Reworked stub to clean up mutable default argument and missing special method.

* Added bethanyg as contributor.
2024-12-01 22:30:59 -08:00

37 lines
464 B
Python

class EmptyListException(Exception):
pass
class Node:
def __init__(self, value):
pass
def value(self):
pass
def next(self):
pass
class LinkedList:
def __init__(self, values=None):
pass
def __iter__(self):
pass
def __len__(self):
pass
def head(self):
pass
def push(self, value):
pass
def pop(self):
pass
def reversed(self):
pass