User Defined data structure - Python | codin india
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG-H42rX9wy62hLOOorF41vvu09o_OLhMLZhgGDvrcvxDEKa32vsSIKMYDDsZUHkejtMczSbo5Hxkq8xYcGAZSqm-QqPiNkPkmmj2m0uzdJ3sHJDK3D_IC3_5DDAqFONZjTIr-vl4-Ub0k/w320-h169/linked+list.png)
In computer science, a data structure is a logical way of organizing data in computer memory so that it can be used effectively. A data structure allows data to be added, removed, stored and maintained in a structured manner. Python supports two types of data structures: 1. Non-primitive data types:- Python has list, set, tuples and dictionary as its non-primitive data types which can also be considered its in-built data structures. List Arrays Tuples Dictionaries 2. User-defined data structures:- Data Structures that aren't supported by python but can be programmed to reflect the same functionality using concepts supported by python are user-defined data structures. There are many data structures that can be implemented this way:- Linked List Stack Queue Tree Graphs Hash map Linked List Data Structure:- A Linked List is a linear data structure, in which the elements are not stored at contiguous memory location. The elements in a linked list are linked using pointers. Python c