1. Learn
  2. /
  3. Courses
  4. /
  5. Data Structures and Algorithms in Python

Exercise

Implementing a linked list

In the video, you learned how to create singly linked lists by implementing the Node() class and the LinkedList() class.

In this exercise, you will practice implementing both of these classes. In the first step, we will implement the Node() class, and in the second step the LinkedList() class. Are you ready?

Instructions 1/3

undefined XP
  • 1
    • Store the value for the node in self.value.
  • 2
    • Instantiate the node without a next value.
  • 3
    • Instantiate your LinkedList() without a head and tail.