NodePractice1.py

From WLCS
class Node:
    def __init__(self):
        self.data = 0
        self.next = None
        
#Draw the memory diagram of the following code
a = Node()
a.data = 20
b = Node()
a.next = b
b.data = 13
b.next = Node()
b.next.data = 14