First time here? Check out the FAQ!
answered 2019-10-29 09:32:04 +0200
Like that
sage: A={1:{2:3,4:2},2:{}} sage: A[1][5]='smile' sage: A {1: {2: 3, 4: 2, 5: 'smile'}, 2: {}}