Function to print the data present in all the nodes
def print_ ( head ) : NEW_LINE INDENT curr = head NEW_LINE while ( curr != None ) : NEW_LINE INDENT print ( ( curr . data ) , end = " ▁ - ▁ > ▁ " ) NEW_LINE curr = curr . next NEW_LINE DEDENT DEDENT