# Write a Python program to Swap elements in String list # Python3 code to demonstrate # Swap elements in String list# using replace() + list comprehension  # Initializing listtest_list = ['Gfg', 'is', 'best', 'for', 'Geeks']  # printing original listsprint("The original list is : " + str(test_list))  # Swap elements in String list# using replace() + list comprehensionres = [sub.replace('G', '-').replace('e', 'G').replace('-', 'e') for sub in test_list]  # printing result print ("List after performing character swaps : " + str(res))