Skip to content

Commit

Permalink
Advanced Task
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronnie5562 committed Jul 24, 2023
1 parent 38f8718 commit 7fd07c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-classes/100-singly_linked_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def __init__(self, data, next_node=None):
data (int): The data of the new Node.
next_node (Node): The next node of the new Node.
"""
self.__data = data
self.__next_node = next_node
self.data = data
self.next_node = next_node

@property
def data(self):
Expand Down

0 comments on commit 7fd07c7

Please sign in to comment.