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:
On providing this as input ,
li = ['server=mpilgrim', 'uid=sa', 'database=master', 'pwd=secret'] s = ";".join(li) print(s)
Python returns this as output :
'server=mpilgrim;uid=sa;database=master;pwd=secret'