Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions instance-class-static-methods/pizza.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ def prosciutto(cls):

@staticmethod
def get_size_in_inches(size):
"""Returns an approximate diameter in inches for common sizes."""
size_map = {"small": 8, "medium": 12, "large": 16}
"""Returns the diameter in inches for common pizza sizes."""
size_map = {
"small": 8,
"medium": 12,
"large": 16,
}
return size_map.get(size, "Unknown size")


Expand Down
Loading