What is the function of slicing operation ?
Question :
What is the function of slicing operation ?
We can retrieve a slice (substring) of a string with a slice operation. The slicing operation is used by specifying the name of the sequence, followed by an optional pair of numbers separated by an optional pair of numbers separated by a colon, enclosed within square brackets.