fork download
  1. list_of_dicts = [
  2. {"name": "Alice", "age": 30},
  3. {"name": "Bob", "age": 25}
  4. ]
  5.  
  6. set_of_lists = { list_of_dicts }
  7.  
  8. print(set)
Runtime error #stdin #stdout #stderr 0.13s 25920KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 6, in <module>
TypeError: unhashable type: 'list'