"यहाँ एक फ़ंक्शन है जो इसे प्राप्त कर सकता है: python def common_words (string): #Split the string by comma words = string.split(,"") #Initialize an empty list to store the result result result = [] #Iterate through the word list, checking for common words for word in words: #if the word appears more than once, it means that it is common if words. count(word) > result #if the common word is not already in the result list: #append to #append to #return the result You can now call this function by passing in a comma-separated string as a parameter, so like: #python common_words = ""appleafter appleafter appleafter appleafter appleafter appleafter appleafter appleafter appleafaf after appleaf after appleaf after appleaf after appleaf."""
एक फ़ंक्शन का निर्माण करें जो अल्पविराम से अलग स्ट्रिंग इनपुट लेता है और उन शब्दों को लौटाता है जो दोनों स्ट्रिंग्स में दिखाई देते हैं.