C. String Methods (Expandtabs, Find, Index)

String expandtabs() Method

- It returns a given string in which we added '\t' (tab character) that expands our string using spaces.


String find() Method

- The find() method finds the specified value in the string and returns the position where it was found.



String index() Method

- Searches the string for a specified value and returns the position where it was found.

Comments