We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f214698 commit 7b46e8eCopy full SHA for 7b46e8e
exercises/practice/simple-linked-list/simple_linked_list.py
@@ -1,3 +1,7 @@
1
+class EmptyListException(Exception):
2
+ pass
3
+
4
5
class Node:
6
def __init__(self, value):
7
pass
@@ -10,7 +14,10 @@ def next(self):
10
14
11
15
12
16
class LinkedList:
13
- def __init__(self, values=[]):
17
+ def __init__(self, values=None):
18
19
20
+ def __iter__(self):
21
22
23
def __len__(self):
@@ -27,7 +34,3 @@ def pop(self):
27
34
28
35
def reversed(self):
29
36
30
-
31
32
-class EmptyListException(Exception):
33
- pass
0 commit comments