# Write a Python program to Replace multiple words with K # Python3 code to demonstrate working of # Replace multiple words with K# Using join() + split() + list comprehension  # initializing stringtest_str = 'Geeksforgeeks is best for geeks and CS'  # printing original stringprint("The original string is : " + str(test_str))  # initializing word list word_list = ["best", 'CS', 'for']  # initializing replace word repl_wrd = 'gfg'  # Replace multiple words with K# Using join() + split() + list comprehensionres = ' '.join([repl_wrd if idx in word_list else idx for idx in test_str.split()])  # printing result print("String after multiple replace : " + str(res)) 