Código:
Python 3.6.2 (default, Sep 3 2017, 21:33:41)
[GCC 6.3.0 20170406] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> x={"hola",1,True,256}
>>> print(x)
{256, 1, 'hola'}
>>> x['c'] = "que tal"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'set' object does not support item assignment
[GCC 6.3.0 20170406] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> x={"hola",1,True,256}
>>> print(x)
{256, 1, 'hola'}
>>> x['c'] = "que tal"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'set' object does not support item assignment
estoy trabajando en python 3.6.2 y cuando intento agregar una clave/valor al diccionario me sale error,hubo algun cambio con las actualizaciones,si pueden hacermelo saber se los agradeceria mucho
gracias