Skip to content

Commit

Permalink
Reworked stub to clean up mutable default argument and missing specia…
Browse files Browse the repository at this point in the history
…l method.
  • Loading branch information
BethanyG committed Dec 2, 2024
1 parent f214698 commit 7b46e8e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions exercises/practice/simple-linked-list/simple_linked_list.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
class EmptyListException(Exception):
pass


class Node:
def __init__(self, value):
pass
Expand All @@ -10,7 +14,10 @@ def next(self):


class LinkedList:
def __init__(self, values=[]):
def __init__(self, values=None):
pass

def __iter__(self):
pass

def __len__(self):
Expand All @@ -27,7 +34,3 @@ def pop(self):

def reversed(self):
pass


class EmptyListException(Exception):
pass

0 comments on commit 7b46e8e

Please sign in to comment.