8000 Updated questions · zfoxpython/intro-to-python@4e2b444 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e2b444

Browse files
committed
Updated questions
1 parent 52eede6 commit 4e2b444

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

session_10/exercises/exercises_10.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
- the get_word method should accept a string from the user
3232
- the print_word method prints the string in upper case.
3333

34-
6. Create a Sandwich class with the attributes order_number and ingredients (which is given as a list).
35-
- Only the ingredients will be given as input.
34+
6. Create a Sandwich class with the attributes order_number and ingredients.
35+
- i. The ingredients attributes is given as a list - (Note: use list(<atrribute>) to enable this).
36+
- Only the ingredients attributes will be given as input.
37+
- ii. The order attriubte will be a method that counts the order number.
38+
- iii. Make three methods for the following favourite sandwiches, for customers who don't want to create a sandwich:
39+
- vegan_hot - vegan cheese, meatless meatballs, jalapenos
40+
- meat_feast - steak, peppers, cheese
41+
- veggie - tomamto, spinach, mushroom, eggs
3642

37-
You should also make it possible to choose a ready-made sandwich rather than typing out the ingredients manually. Also hard-code the following sandwich flavours.
38-
39-
Name Ingredients
40-
vegan_hot vegan cheese, meatless meatballs, jalapenos
41-
meat_festival steak, peppers, cheese
42-
garden_feast spinach, olives, mushroom, eggs

0 commit comments

Comments
 (0)
0