I. String Methods (ljust, rjust, rfind)

String ljust() Method

- The ljust() method used to fill the space(default) or specified characters on the right side of a string and replace the string on the left side by their length .



String rjust() Method

- The rjust() method used to fill the space(default) or specified characters on the left side of a string and replace the string on the right side by their length .



String rfind() Method

- The rfind() method Searches the string for a specified value and returns the last position of where it was found.
- Returns -1 if the value is not found.

Comments