# initialize the list of string str_list = ['My', 'favourite', 'fruit', 'is', 'banana', 6] # initialize the separator separator = '-' # use python string joint to join the words of the string output = separator.join(str_list) # print the output result print(output)