-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
29 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
# Define data structures for menu items (drinks and pastries) | ||
drink = { | ||
"name": str, # Name of the drink | ||
"size": str, # Size (e.g., Small, Medium, Large) | ||
"price": float, # Price of the drink | ||
"name": str, | ||
"size": str, | ||
"price": float, | ||
} | ||
|
||
pastry = { | ||
"name": str, # Name of the pastry | ||
"price": float, # Price of the pastry | ||
} | ||
"name": str, | ||
"price": float, } | ||
|
||
|
||
# Define data structure for an order item (combines drink or pastry with its quantity and customizations) | ||
order_item = { | ||
"name": str, # Name of the drink or pastry | ||
"size": str, # Size (applicable to drinks only) | ||
"price": float, # Price of the item | ||
"quantity": int, # Quantity of the item (default 1) | ||
"customizations": str | None, # Optional customizations (applicable to drinks) | ||
"name": str, | ||
"size": str, | ||
"price": float, | ||
"quantity": int, | ||
"customizations": str | None, | ||
} | ||
|