Skip to content

Day9: working with dictionaries #7

Closed
@blakeaa827

Description

@blakeaa827

Hey there,

Having a hard time following instructions for day 9. Dictionaries are unsorted. So printing out the nth dictionary entry doesn't make sense to me. Since the dictionary is in alphabetical order in data.py, I assumed this means that is the "order" the instructions are referring to. So I generated a new dictionary with the index as the key.

However, the last instruction says to replace the key in the nth position of the dictionary with the value from the nth position in the list. However, that would create a duplicate key in the dictionary and doesn't work.

Please let me know if I'm completely missing something here!

Thanks very much!
-Blake

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions