I\'m trying to add items to an array in python.
I run
array = {}
Then, I try to add something to this array by doing:
No, if you do:
IN your example you are using array as a dictionary, not an array. If you need an array, in Python you use lists:
array
array = []
Then, to add items you do:
array.append('a')