Question: Help me solve this python code without re or anything advanced. Beginner python code. Nothing too long either. Thank you! please! I need

Help me solve this python code without "re" or anything advanced. Beginner python code. Nothing too long either. Thank you! please! I need to write a code that finds the common word which is windows.
for example:
Windows7
Windows8.1
Output:
Original strings:
Windows7
Windows8.1
Common values of given strings:
Windows
Here is my code but I keep getting the "output set():
def find_common_characters(str1, str2):
str1= str1.lower()
str2= str2.lower()
str1_words = str1.split()
str2_words = str2.split()
common = set(str1_words) & set(str2_words)
return (common)
str1= "Windows7"
str2= "Windows8.1"
result = find_common_characters(str1, str2)
print("Common Words:", result)
the output it keeps providing is this
Common Words: set()
I need the output to say "windows"
since the common word is windows

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!