Find repeated words in a string in Python
In this program, we will learn about how to find out the duplicate words present in the string and display those words. Here are the steps to find repeated words in a string in Python: Step1: First we need to split the string into word Step2: Create a set to store unique words Step3: Create another …