2

The following code does not cause an error, but it has no effect:

d = {"name": "Joey"}
d["age"]: 1

Notice that there's a typo, it should be = rather than :, how does python understand it?

Quan Zhou
  • 21
  • 1

0 Answers0