Skip to content

Commit

Permalink
Update node.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 20, 2024
1 parent a52cfd6 commit fc8d590
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kyu_7/fun_with_lists_length/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ class Node:
"""The linked list."""

def __init__(self, data, n_next=None):
"""
Create a new Node instance.
:param data:
:param n_next:
"""
self._data = data
self._next = n_next

Expand All @@ -25,7 +31,7 @@ def next(self):
@next.setter
def next(self, n_next=None) -> None:
"""
Get next.
Set next.
:param n_next:
:return:
Expand All @@ -44,7 +50,7 @@ def data(self):
@data.setter
def data(self, data) -> None:
"""
Get data.
Set data.
:param data:
:return:
Expand Down

0 comments on commit fc8d590

Please sign in to comment.