We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81f71e5 commit a6ec61bCopy full SHA for a6ec61b
data_structures/doubly_linked_list/doubly_linked_list.py
@@ -1,7 +1,7 @@
1
class Node:
2
- def __init__(self, data = None, next, previous = None):
+ def __init__(self, data = None, next = None, previous = None):
3
self.data = data
4
- self.next = None
+ self.next = next
5
self.previous = previous
6
7
class Lista:
0 commit comments