Python question:
Why does this return a list of characters instead of a list of the keys as strings?
d = {'key1': 'aaa', 'key2': 'aaa', 'key3': 'bbb'}
a=[]
for k,v in d.items():
a += k
print(a)
I received the following result:
['k', 'e', 'y', '1', 'k', 'e', 'y', '2', 'k', 'e', 'y', '3']