Find the longest capital letter word from string

In this program, we will take a string as input and find the longest capital letter word from the string

Steps to solve the program
  1. Take a string as input.
  2. Import re library to find the all capital letter words.
  3. Find the longest capital letter word from the string using max(),
  4. Print the output.

Output :

remove unwanted characters from the given string.

get common words from strings.

Leave a Comment