Data Structures and Algorithms in Python | 39. User defined lists - Part A by Abraham | Learn Smarter
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Academics
Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Professional Courses
Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβ€”perfect for learners of all ages.

games
39. User defined lists - Part A

User-defined lists serve as an illustration of how to implement a linked list data structure in Python. The chapter explores creating nodes, appending, inserting, and deleting nodes from a list while following recursive and iterative approaches. Additionally, the importance of understanding node connections and memory management when performing these operations is emphasized.

Sections

  • 39.1

    Programming, Data Structures And Algorithms In Python

    This section introduces the concept of user-defined lists in Python, focusing on how to create and manipulate a linked list data structure.

  • 39.2

    User Defined Lists

    This section introduces user-defined lists as a custom data structure built using nodes, explaining how to create and manipulate them in Python.

  • 39.2.1

    Defining The List Structure

    This section introduces the concept of user-defined lists in Python, explaining the underlying structure of a list as a sequence of nodes and how to manage these nodes.

  • 39.2.2

    Class Node And Initialization

    This section introduces the foundational concepts of implementing a user-defined list in Python, including class initialization and node structure.

  • 39.2.3

    Manipulating The List

    This section introduces user-defined lists in Python, focusing on how to manipulate them through key operations such as append, insert, and delete.

  • 39.2.4

    Appending Values

    This section explores the implementation of user-defined lists in Python, focusing on the techniques for appending, inserting, and deleting nodes.

  • 39.2.5

    Iterative Append Method

    This section discusses how to implement a user-defined list in Python, focusing on the iterative append method for adding elements to the list.

  • 39.2.6

    Inserting Values

    This section discusses implementing and manipulating user-defined lists in Python using node structures.

  • 39.2.7

    Deleting Nodes

    This section explains how to delete nodes in a user-defined linked list in Python.

Class Notes

Memorization

What we have learnt

  • A linked list consists of n...
  • An empty list is represente...
  • Appending, inserting, and d...

Final Test

Revision Tests