Split a string on last occurrence of delimiter. 

In this program, we will take a string as input and split a string on last occurrence of delimiter.

Steps to solve the program
  1. Take a string as input.
  2. Split the string on the last occurrence of delimiter using rsplit().
  3. Print the output.

Output :

count and display the vowels in a string

find the first repeated word in a given string. 

Leave a Comment