0
1.2kviews
Explain Indexing and Slicing operations for string manipulation with examples in python.
1 Answer
written 18 months ago by |
Solution:
Indexing operation:
The indexing syntax of a slice is a shorthand or a better substitute for the slice() as it’s easier to understand and execute.
Python index () method is the same as the find() method except it returns an error on failure.
This method returns the index of …