Data Models in Python Using LinkedList example


Python data models are important aspects in designing the objects. Python data models helps you to implement how your objects should behave to the user.Example: By Default, print(object) prints non-useful o/p, we can make it to produce something meaningful to the user. 

This experiment, tries to implement few DataModels for LinkList object in Python such as iter(Makes linkedList Object iterable), eq(Compares Two LinkedLists on  == operator), add(Adds Elements of two LinkedLists), str(Prints the elements of LinkList on printing the object), repr(Display the representation of LinkedList object on repr method) etc.

For Implementation details, please visit the git Link:

https://github.com/Indu-sharma/Utilities/tree/master/Python_generic/PythonDataModels

Comments