list = ["The", "fox", "jumped", "over", "the", "fence", "."] n = " ".join(list) n = list[0:-2] + "." print(n)