Python slice function example

Python Built-in Function slice: The slice() is a built-in function in Python that returns an object of type slice representing