I've been toying a bit with python lists and I find the following a bit strange.
list = ["test"]
list + "test1"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can only concatenate list (not "str") to list
list += "test1"
print(list)
['test', 't', 'e', 's', 't', '1']
Can somebody help me understand why the += works but the + doesn't?
Also, I would have expected "test1" to be appended as a single element. Why one element per letters?