Advertisement
aril941

class_node

Nov 23rd, 2020 (edited)
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. from class_linked import*
  2. from main import*
  3. # ------------------------------------------
  4. # NAMA  : Muhammad Kharirrushofa
  5. # NIM   : A11.2019.11823
  6. # ------------------------------------------
  7.  
  8. class node(object):
  9.     """docstring for Node"""
  10.     def __init__(self, data=None, next_node=None):
  11.         self.data = data
  12.         self.next_node=next_node
  13.        
  14.  
  15.     def rls(self,next_rls):
  16.         self.next_node=next_rls
  17.            
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement