KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a question about a dictionary I want to make. My goal is to have multiple keys to a single value, like below: dictionary = {('a', 'b'): 1, ('c', 'd'): 2} assert dictionary['a'] == 1 assert dictionary['b'] == 1 Any ideas?
Tags (comma-separated)
Save Edits
Cancel