Basically, {} does not represents an array or a list, it is for defining an empty dictionary.
If you want to define arrays or lists, you'd need [].
In order to initialize an empty list, try this:
my_list = []
or try this,
my_list = list()
Adding elements in the list, use append:
my_list.append(12)
For extending the list for including the elements from other list, try extend:
my_list.extend([1,2,3,4])
my_list
--> [12,1,2,3,4]
use remove to remove an elements from your list:
my_list.remove(2)
To initialize the empty dictionary, try dict() or {}
Dictionaries have keys and values like:
my_dict = {'key':'value', 'another_key' : 0}
If you want to extend the dictionary with the contents and another dictionary, then you can use the update command for this method:
my_dict.update({'third_key' : 1})
For removing a value from the dictionary:
del my_dict['key']