If current node is less than X , append it to the list of smaller values
elif ( head . data < x ) : NEW_LINE INDENT if ( smallerHead == None ) : NEW_LINE INDENT smallerLast = smallerHead = head NEW_LINE DEDENT else : NEW_LINE INDENT smallerLast . next = head NEW_LINE smallerLast = head NEW_LINE DEDENT DEDENT else : NEW_LINE