Back and forth

Report a typo

Choose Python objects that will be the same after conversion to JSON and back.

a)

{42: "Life, the Universe, and Everything"}

b)

[{"race": "elf", "class": "bard"}, {"race": "dwarf", "class": "monk"}]

c)

{"decimal": 10, "binary": 1010, "hexadecimal": "A"}

d)

{True: ["Water is wet", "Earth revolves around the Sun"], False: ["We live on Jupiter", "x is not equal to x"]}

Tip: Check the type of keys in the dictionary.

Select one or more options from the list
___

Create a free account to access the full topic