How can I access a dictionary key value inside of a loop?

2 posts were split to a new topic: Passed, but Code Prints an Error When Run