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
- Take a string as input.
- Import re library to find the all capital letter words.
- Find the longest capital letter word from the string using max(),
- Print the output.
Output :