Append and Prepend

In this lesson, you will learn how to implement doubly linked lists and insert elements in it using Python.

We'll cover the following

In this lesson, we introduce the doubly linked list data structure and code up an implementation of this data structure in Python.

After that, we look at how to append (add elements to the back of the doubly linked list) and prepend (add elements to the front of the doubly linked list).

Finally, we will write a print method to verify that the append and prepend methods work as expected.

Get hands-on with 1200+ tech skills courses.