Find the smallest and largest word from a string

In this program, we will take a string as input and find the smallest and largest word in a given string

Steps to solve the program
  1. Take a string as input.
  2. Split the string using Split().
  3. Find the smallest and the largest word from a string using min() and max().

Output :

get common words from strings.

whether the given string is a palindrome (similar) or not.

Leave a Comment