Put in the data
temp . data = data NEW_LINE temp . next = temp . prev = None NEW_LINE if ( ( head ) == None ) : NEW_LINE INDENT ( head ) = temp NEW_LINE DEDENT else : NEW_LINE INDENT temp . next = head NEW_LINE ( head ) . prev = temp NEW_LINE ( head ) = temp NEW_LINE DEDENT return head NEW_LINE