
slice() function in python is used to sliced a given sequence or given object There are three parameters the first one is an starting point which is optional.second parameter for slice function tells about the ending point.Third one will tell the increment between each index.Syntax:- ...