I'm new to Python and I'm using Python3, I'm trying to join list items into a string, I found that when I try str().join(lst)
I successfully get the list items as a string but when I do this str.join(lst)
I get:
TypeError: descriptor 'join' requires a 'str' object but received a 'list'
What is the difference between str
and str()
in this case?