I\'m pretty new to Python and am completely confused by .join() which I have read is the preferred method for concatenating strings.
.join()
I tried:
"".join may be used to copy the string in a list to a variable
>>> myList = list("Hello World") >>> myString = "".join(myList) >>> print(myList) ['H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd'] >>> print(myString) Hello World