I\'m having trouble understanding nested dictionary comprehensions in Python 3. The result I\'m getting from the example below outputs the correct structure without error,
{ok: {ik: myfunc(iv) for ik, iv in ov.items()} for ok, ov in od.items()}
where ok-outer key ik-inner key ov-outer value iv-inner value od-outer dictionary This is how i remember.