Each operator can be used in different way for different types of operands. for example when + is used with integers, it add integers to give result and when + is used with string, it concatenates the provided strings.
Lists are great for storing collection of related objects. Let’s understand dynamic, mutable and heterogenous nature of Python lists.
Python has inbuilt function sorted(), which can be use to sort any iterable. In this article we will explore from basics to advance features of sorted() function.