Python sorted function example

Python Built-in Function sorted: The sorted() is an inbuilt function in Python used to sort the items in the given