-
-
Save stephengruppetta/5bbba063c0a453b490c652e3e231667a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import NamedTuple | |
shopping_list = [ | |
"Biscuits", | |
"Bread", | |
"Butter" | |
"Berries", | |
"Bananas", | |
"Bagels", | |
] | |
class SupermarketShelves(NamedTuple): | |
aisle: int | |
section: str | |
supermarket = { | |
"Bread": SupermarketShelves(3, "B"), | |
"Biscuits": SupermarketShelves(4, "D"), | |
"Butter": SupermarketShelves(1, "B"), | |
"Berries": SupermarketShelves(5, "C"), | |
"Bananas": SupermarketShelves(5, "C"), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment