0
error
squares = {1: 1, 2: 4, 3: "error", 4: 16,} squares[8] = 64 squares[3] = 9 print(squares) {1: 1, 2: 4, 3: 9, 4: 16, 8: 64}
1 Answer
+ 3
What error are you getting?
Works fine for me
squares = {1: 1, 2: 4, 3: "error", 4: 16,} squares[8] = 64 squares[3] = 9 print(squares) {1: 1, 2: 4, 3: 9, 4: 16, 8: 64}