When I print a key from dict it prints it but when I try to assign it to a variable I get KeyError. Here is my code and expected output:
from __future__ i