Skip to content

Commit 7fafe2e

Browse files
Update linked-lists-python.py
1 parent 81673a9 commit 7fafe2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linked-lists-python/linked-lists-python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def add_after(self, target_node_data, new_node):
4949
raise Exception("List is empty")
5050

5151
for node in self:
52-
if node.data == target_node_data:
52+
if node.data == target_node_data:
5353
new_node.next = node.next
5454
node.next = new_node
5555
return

0 commit comments

Comments
 (0)